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

Unified Diff: chrome/renderer/searchbox/searchbox_extension.cc

Issue 2149973002: Remove embeddedSearch.searchBox.displayInstantResults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@searchbox_applauncher
Patch Set: rebase Created 4 years, 5 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/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index 8d2a6aab02e73dc6f52eb38a8d06a9e176082d63..76bcea81a76ef99bbce8e5ae27c44723d2d6258d 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -491,10 +491,6 @@ class SearchBoxExtensionWrapper : public v8::Extension {
static void UndoMostVisitedDeletion(
const v8::FunctionCallbackInfo<v8::Value>& args);
- // Indicates whether the page supports Instant.
- static void GetDisplayInstantResults(
- const v8::FunctionCallbackInfo<v8::Value>& args);
-
private:
DISALLOW_COPY_AND_ASSIGN(SearchBoxExtensionWrapper);
};
@@ -639,9 +635,6 @@ SearchBoxExtensionWrapper::GetNativeFunctionTemplate(
return v8::FunctionTemplate::New(isolate, UndoAllMostVisitedDeletions);
if (name->Equals(v8::String::NewFromUtf8(isolate, "UndoMostVisitedDeletion")))
return v8::FunctionTemplate::New(isolate, UndoMostVisitedDeletion);
- if (name->Equals(
- v8::String::NewFromUtf8(isolate, "GetDisplayInstantResults")))
- return v8::FunctionTemplate::New(isolate, GetDisplayInstantResults);
return v8::Local<v8::FunctionTemplate>();
}
@@ -1142,17 +1135,4 @@ void SearchBoxExtensionWrapper::UndoMostVisitedDeletion(
->UndoMostVisitedDeletion(args[0]->ToInteger()->Value());
}
-// static
-void SearchBoxExtensionWrapper::GetDisplayInstantResults(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- content::RenderView* render_view = GetRenderView();
- if (!render_view) return;
-
- bool display_instant_results =
- SearchBox::Get(render_view)->display_instant_results();
- DVLOG(1) << render_view << " GetDisplayInstantResults" <<
- display_instant_results;
- args.GetReturnValue().Set(display_instant_results);
-}
-
} // namespace extensions_v8
« no previous file with comments | « chrome/renderer/searchbox/searchbox.cc ('k') | testing/buildbot/filters/browser-side-navigation.linux.unit_tests.filter » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698