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

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

Issue 2884293002: Remove unused embeddedSearch.searchBox APIs (Closed)
Patch Set: . Created 3 years, 7 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 39edfad82aaee13e0410bacf5c83f76b2315090b..f896cc85e20337bff34a50e2010f8d4919bbae01 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -376,12 +376,6 @@ class SearchBoxExtensionWrapper : public v8::Extension {
static void GetMostVisitedItemData(
const v8::FunctionCallbackInfo<v8::Value>& args);
- // Gets the submitted value of the user's search query.
- static void GetQuery(const v8::FunctionCallbackInfo<v8::Value>& args);
-
- // Returns true if the Searchbox itself is oriented right-to-left.
- static void GetRightToLeft(const v8::FunctionCallbackInfo<v8::Value>& args);
-
// Gets the Embedded Search request params. Used for logging purposes.
static void GetSearchRequestParams(
const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -532,10 +526,6 @@ SearchBoxExtensionWrapper::GetNativeFunctionTemplate(
return v8::FunctionTemplate::New(isolate, GetMostVisitedItems);
if (name_str == "GetMostVisitedItemData")
return v8::FunctionTemplate::New(isolate, GetMostVisitedItemData);
- if (name_str == "GetQuery")
- return v8::FunctionTemplate::New(isolate, GetQuery);
- if (name_str == "GetRightToLeft")
- return v8::FunctionTemplate::New(isolate, GetRightToLeft);
if (name_str == "GetSearchRequestParams")
return v8::FunctionTemplate::New(isolate, GetSearchRequestParams);
if (name_str == "GetSuggestionToPrefetch")
@@ -680,24 +670,6 @@ void SearchBoxExtensionWrapper::GetMostVisitedItemData(
}
// static
-void SearchBoxExtensionWrapper::GetQuery(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- content::RenderFrame* render_frame = GetRenderFrame();
- if (!render_frame)
- return;
- const base::string16& query = SearchBox::Get(render_frame)->query();
- DVLOG(1) << render_frame << " GetQuery: '" << query << "'";
- v8::Isolate* isolate = args.GetIsolate();
- args.GetReturnValue().Set(UTF16ToV8String(isolate, query));
-}
-
-// static
-void SearchBoxExtensionWrapper::GetRightToLeft(
- const v8::FunctionCallbackInfo<v8::Value>& args) {
- args.GetReturnValue().Set(base::i18n::IsRTL());
-}
-
-// static
void SearchBoxExtensionWrapper::GetSearchRequestParams(
const v8::FunctionCallbackInfo<v8::Value>& args) {
content::RenderFrame* render_frame = GetRenderFrame();
« chrome/renderer/searchbox/searchbox.cc ('K') | « chrome/renderer/searchbox/searchbox.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698