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

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

Issue 1397233002: [Offline pages] Detecting missing offline copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.enhancedbookmarks; 5 package org.chromium.chrome.browser.enhancedbookmarks;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 8
9 import org.chromium.base.ObserverList; 9 import org.chromium.base.ObserverList;
10 import org.chromium.base.VisibleForTesting; 10 import org.chromium.base.VisibleForTesting;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 98 }
99 } 99 }
100 } 100 }
101 101
102 /** 102 /**
103 * Clean up all the bridges. This must be called after done using this class . 103 * Clean up all the bridges. This must be called after done using this class .
104 */ 104 */
105 @Override 105 @Override
106 public void destroy() { 106 public void destroy() {
107 if (mOfflinePageBridge != null) { 107 if (mOfflinePageBridge != null) {
108 mOfflinePageBridge.removeObserver(mOfflinePageModelObserver);
108 mOfflinePageBridge.destroy(); 109 mOfflinePageBridge.destroy();
109 mOfflinePageBridge = null; 110 mOfflinePageBridge = null;
110 } 111 }
111 112
112 super.destroy(); 113 super.destroy();
113 } 114 }
114 115
115 @Override 116 @Override
116 public boolean isBookmarkModelLoaded() { 117 public boolean isBookmarkModelLoaded() {
117 return super.isBookmarkModelLoaded() 118 return super.isBookmarkModelLoaded()
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 return bookmarkIds; 277 return bookmarkIds;
277 } 278 }
278 279
279 /** 280 /**
280 * @return Offline page bridge. 281 * @return Offline page bridge.
281 */ 282 */
282 public OfflinePageBridge getOfflinePageBridge() { 283 public OfflinePageBridge getOfflinePageBridge() {
283 return mOfflinePageBridge; 284 return mOfflinePageBridge;
284 } 285 }
285 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698