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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java

Issue 563743002: Remove FontSizePrefs destroy() method as its a singleton class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java b/chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java
index 6878cfe7225c41c8d24bc595660bc05f1ed48963..d4d532af327be3dfec1263bc3d31d15645416290 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java
@@ -173,6 +173,7 @@ public class FontSizePrefs implements OnSharedPreferenceChangeListener {
public void destroy() {
mSharedPreferences.unregisterOnSharedPreferenceChangeListener(this);
nativeDestroy(mFontSizePrefsAndroidPtr);
+ mObserverMap.clear();
Ted C 2014/09/15 18:42:37 destroy seems like an odd API to have on a singlet
nyquist 2014/09/15 19:56:50 Yes, .clear() would be wrong. I think it would be
wajahat 2014/09/16 09:30:36 As this is a singleton class and there are no refe
wajahat 2014/09/16 09:30:36 Done.
}
private native void nativeAddObserver(long nativeFontSizePrefsAndroid,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698