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

Unified Diff: chrome/renderer/resources/extensions/searchbox_api.js

Issue 2413663002: Remove embeddedSearch.searchBox.focus (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/searchbox_api.js
diff --git a/chrome/renderer/resources/extensions/searchbox_api.js b/chrome/renderer/resources/extensions/searchbox_api.js
index ea1312ecabbafa2f41e9ff421307d1a902332a4d..cc7bfa5ab3a07e02aa76d3c0383426f4e7a301ef 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -13,7 +13,6 @@ if (!chrome.embeddedSearch) {
// =======================================================================
// Private functions
// =======================================================================
- native function Focus();
native function GetMostVisitedItemData();
native function GetQuery();
native function GetSearchRequestParams();
@@ -36,12 +35,9 @@ if (!chrome.embeddedSearch) {
Object.defineProperty(this, 'requestParams',
{ get: GetSearchRequestParams });
- this.focus = function() {
- Focus();
- };
-
// This method is restricted to chrome-search://most-visited pages by
// checking the invoking context's origin in searchbox_extension.cc.
+ // TODO(treib): Why is this in searchBox rather than newTabPage?
this.getMostVisitedItemData = function(restrictedId) {
var item = GetMostVisitedItemData(restrictedId);
if (item) {
« no previous file with comments | « no previous file | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698