Skip to content

Commit

Permalink
[WebLayer] Increment version for UrlBarController
Browse files Browse the repository at this point in the history
Increment the version UrlBarController is available from.

Bug: 1025607
Change-Id: I1331921c937883e265b2f6cdf1520039f8f350cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2081416
Reviewed-by: Richard Coles <torne@chromium.org>
Commit-Queue: Mugdha Lakhani <nator@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747215}
  • Loading branch information
Mugdha Lakhani authored and Commit Bot committed Mar 5, 2020
1 parent fcf9955 commit 4abbbaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions weblayer/public/java/org/chromium/weblayer/Browser.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected Browser() {

try {
mImpl.setClient(new BrowserClientImpl());
if (WebLayer.getSupportedMajorVersionInternal() >= 81) {
if (WebLayer.getSupportedMajorVersionInternal() >= 82) {
mUrlBarController = new UrlBarController(mImpl.getUrlBarController());
} else {
mUrlBarController = null;
Expand Down Expand Up @@ -254,12 +254,12 @@ public Profile getProfile() {

/**
* Returns the UrlBarController.
* @since 81
* @since 82
*/
@NonNull
public UrlBarController getUrlBarController() {
ThreadCheck.ensureOnUiThread();
if (WebLayer.getSupportedMajorVersionInternal() < 81) {
if (WebLayer.getSupportedMajorVersionInternal() < 82) {
throw new UnsupportedOperationException();
}
return mUrlBarController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ protected UrlBarController() {
/**
* Creates a URL bar view based on the options provided.
* @param options The options provided to tweak the URL bar display.
* @since 81
* @since 82
*/
public View createUrlBarView(UrlBarOptions options) {
ThreadCheck.ensureOnUiThread();
if (WebLayer.getSupportedMajorVersionInternal() < 81) {
if (WebLayer.getSupportedMajorVersionInternal() < 82) {
throw new UnsupportedOperationException();
}

Expand Down

0 comments on commit 4abbbaa

Please sign in to comment.