Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
index 4426bcfdaa3a46cb27256b8f517fc864ee941c9a..b37e836196e1337c0348b4bb9f1f922196d66e48 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
@@ -4,6 +4,7 @@ |
package org.chromium.chrome.browser.contextualsearch; |
+import android.annotation.SuppressLint; |
import android.os.Handler; |
import android.text.TextUtils; |
import android.view.View; |
@@ -635,6 +636,7 @@ public class ContextualSearchManager implements ContextualSearchManagementDelega |
quickActionCategory); |
} |
+ @SuppressLint("StringFormatMatches") |
@Override |
public void handleSearchTermResolutionResponse(boolean isNetworkUnavailable, int responseCode, |
String searchTerm, String displayText, String alternateTerm, String mid, |
@@ -657,6 +659,7 @@ public class ContextualSearchManager implements ContextualSearchManagementDelega |
message = mSelectionController.getSelectedText(); |
doLiteralSearch = true; |
} else { |
+ // TODO(crbug.com/635567): Fix lint properly. |
message = mActivity.getResources().getString( |
R.string.contextual_search_error, responseCode); |
doLiteralSearch = true; |