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

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

Issue 2151483004: Remove embeddedSearch.newTabPage.GetAppLauncherEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused include, 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 24ad6a499ecf9ffe4aa5a71589b0fc097a36d9e0..8d2a6aab02e73dc6f52eb38a8d06a9e176082d63 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -421,10 +421,6 @@ class SearchBoxExtensionWrapper : public v8::Extension {
// Focuses the omnibox.
static void Focus(const v8::FunctionCallbackInfo<v8::Value>& args);
- // Gets whether or not the app launcher is enabled.
- static void GetAppLauncherEnabled(
- const v8::FunctionCallbackInfo<v8::Value>& args);
-
// Gets Most Visited Items.
static void GetMostVisitedItems(
const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -601,8 +597,6 @@ SearchBoxExtensionWrapper::GetNativeFunctionTemplate(
return v8::FunctionTemplate::New(isolate, DeleteMostVisitedItem);
if (name->Equals(v8::String::NewFromUtf8(isolate, "Focus")))
return v8::FunctionTemplate::New(isolate, Focus);
- if (name->Equals(v8::String::NewFromUtf8(isolate, "GetAppLauncherEnabled")))
- return v8::FunctionTemplate::New(isolate, GetAppLauncherEnabled);
if (name->Equals(v8::String::NewFromUtf8(isolate, "GetMostVisitedItems")))
return v8::FunctionTemplate::New(isolate, GetMostVisitedItems);
if (name->Equals(v8::String::NewFromUtf8(isolate, "GetMostVisitedItemData")))
@@ -718,16 +712,6 @@ void SearchBoxExtensionWrapper::Focus(
}
// static
-void SearchBoxExtensionWrapper::GetAppLauncherEnabled(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- content::RenderView* render_view = GetRenderView();
- if (!render_view) return;
-
- args.GetReturnValue().Set(
- SearchBox::Get(render_view)->app_launcher_enabled());
-}
-
-// static
void SearchBoxExtensionWrapper::GetMostVisitedItems(
const v8::FunctionCallbackInfo<v8::Value>& args) {
content::RenderView* render_view = GetRenderView();

Powered by Google App Engine
This is Rietveld 408576698