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

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

Issue 2852693002: Remove DetermineIfPageSupportsInstant and all its plumbing (Closed)
Patch Set: rebase Created 3 years, 8 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 | « chrome/renderer/searchbox/searchbox_extension.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
index 7fb049bdd956cf63072ce6f5d6070a6acd7e6959..43e9a1864dc6127a5be713a79ca5251bf84f0aea 100644
--- a/chrome/renderer/searchbox/searchbox_extension.cc
+++ b/chrome/renderer/searchbox/searchbox_extension.cc
@@ -229,19 +229,6 @@ namespace extensions_v8 {
static const char kSearchBoxExtensionName[] = "v8/EmbeddedSearch";
-// We first send this script down to determine if the page supports instant.
-static const char kSupportsInstantScript[] =
- "if (window.chrome &&"
- " window.chrome.embeddedSearch &&"
- " window.chrome.embeddedSearch.searchBox &&"
- " window.chrome.embeddedSearch.searchBox.onsubmit &&"
- " typeof window.chrome.embeddedSearch.searchBox.onsubmit =="
- " 'function') {"
- " true;"
- "} else {"
- " false;"
- "}";
-
static const char kDispatchChromeIdentityCheckResult[] =
"if (window.chrome &&"
" window.chrome.embeddedSearch &&"
@@ -460,15 +447,6 @@ v8::Extension* SearchBoxExtension::Get() {
}
// static
-bool SearchBoxExtension::PageSupportsInstant(blink::WebFrame* frame) {
- if (!frame) return false;
- v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
- v8::Local<v8::Value> v = frame->ExecuteScriptAndReturnValue(
- blink::WebScriptSource(kSupportsInstantScript));
- return !v.IsEmpty() && v->BooleanValue();
-}
-
-// static
void SearchBoxExtension::DispatchChromeIdentityCheckResult(
blink::WebFrame* frame,
const base::string16& identity,
« no previous file with comments | « chrome/renderer/searchbox/searchbox_extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698