| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |