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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)
Patch Set: rebase Created 3 years, 8 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
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;

Powered by Google App Engine
This is Rietveld 408576698