Index: chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java |
index 7c9f022b817ecada874c32be50ba01ccd708ee9e..7c54e20f2a569df7823e705e030b3b0a313ab3b9 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java |
@@ -127,7 +127,9 @@ public class SearchWidgetProvider extends AppWidgetProvider { |
/** The default search engine's root URL. */ |
private static String sDefaultSearchEngineUrl; |
+ @SuppressLint("StaticFieldLeak") |
private static SearchWidgetTemplateUrlServiceObserver sObserver; |
+ @SuppressLint("StaticFieldLeak") |
private static SearchWidgetProviderDelegate sDelegate; |
/** |
@@ -321,7 +323,7 @@ public class SearchWidgetProvider extends AppWidgetProvider { |
} |
/** Updates the number of consecutive crashes this widget has absorbed. */ |
- @SuppressLint("CommitPrefEdits") |
+ @SuppressLint({"ApplySharedPref", "CommitPrefEdits"}) |
static void updateNumConsecutiveCrashes(int newValue) { |
SharedPreferences prefs = getDelegate().getSharedPreferences(); |
if (getNumConsecutiveCrashes(prefs) == newValue) return; |