Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ActivityTabTaskDescriptionHelper.java

Issue 2642303002: PlzNavigate: Chrome UI changes for new methods of WebContentsObserver (Closed)
Patch Set: PreviousURL Fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.graphics.Bitmap; 7 import android.graphics.Bitmap;
8 import android.text.TextUtils; 8 import android.text.TextUtils;
9 9
10 import org.chromium.base.ApiCompatibilityUtils; 10 import org.chromium.base.ApiCompatibilityUtils;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 public void onTitleUpdated(Tab tab) { 82 public void onTitleUpdated(Tab tab) {
83 updateTaskDescription(); 83 updateTaskDescription();
84 } 84 }
85 85
86 @Override 86 @Override
87 public void onSSLStateUpdated(Tab tab) { 87 public void onSSLStateUpdated(Tab tab) {
88 if (hasSecurityWarningOrError(tab)) resetIcon(); 88 if (hasSecurityWarningOrError(tab)) resetIcon();
89 } 89 }
90 90
91 @Override 91 @Override
92 public void onDidNavigateMainFrame(Tab tab, String url, String baseU rl, 92 public void onDidFinishNavigation(Tab tab, String url, boolean isInM ainFrame,
93 boolean isNavigationToDifferentPage, boolean isFragmentNavig ation, 93 boolean isErrorPage, boolean hasCommitted, boolean isSamePag e,
94 int statusCode) { 94 boolean isFragmentNavigation, Integer pageTransition, int er rorCode,
95 if (!isNavigationToDifferentPage) return; 95 int httpStatusCode) {
96 if (isSamePage) return;
jam 2017/02/07 05:10:32 to maintain the same behavior, you also need to ch
shaktisahu 2017/02/08 01:00:46 Done.
96 mLargestFavicon = null; 97 mLargestFavicon = null;
97 updateTaskDescription(); 98 updateTaskDescription();
98 } 99 }
99 100
100 @Override 101 @Override
101 public void onLoadStopped(Tab tab, boolean toDifferentDocument) { 102 public void onLoadStopped(Tab tab, boolean toDifferentDocument) {
102 updateTaskDescription(); 103 updateTaskDescription();
103 } 104 }
104 105
105 @Override 106 @Override
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 mFaviconHelper.destroy(); 267 mFaviconHelper.destroy();
267 268
268 if (mCurrentTab != null) { 269 if (mCurrentTab != null) {
269 mCurrentTab.removeObserver(mTabObserver); 270 mCurrentTab.removeObserver(mTabObserver);
270 } 271 }
271 272
272 mTabModelSelector.removeObserver(mTabModelSelectorObserver); 273 mTabModelSelector.removeObserver(mTabModelSelectorObserver);
273 mTabModelObserver.destroy(); 274 mTabModelObserver.destroy();
274 } 275 }
275 } 276 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698