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

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: Changes Incorporated 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 | chrome/browser/android/accessibility/font_size_prefs_android.h » ('j') | 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..d9a63a0cb2695382dfec510f878b916d608460d5 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
@@ -170,11 +170,6 @@ public class FontSizePrefs implements OnSharedPreferenceChangeListener {
return nativeGetForceEnableZoom(mFontSizePrefsAndroidPtr);
}
- public void destroy() {
- mSharedPreferences.unregisterOnSharedPreferenceChangeListener(this);
- nativeDestroy(mFontSizePrefsAndroidPtr);
- }
-
private native void nativeAddObserver(long nativeFontSizePrefsAndroid,
long nativeObserverPtr);
@@ -183,8 +178,6 @@ public class FontSizePrefs implements OnSharedPreferenceChangeListener {
private native long nativeInit();
- private native void nativeDestroy(long nativeFontSizePrefsAndroid);
-
private native void nativeSetFontScaleFactor(long nativeFontSizePrefsAndroid, float font);
private native float nativeGetFontScaleFactor(long nativeFontSizePrefsAndroid);
« no previous file with comments | « no previous file | chrome/browser/android/accessibility/font_size_prefs_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698