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

Unified Diff: chrome/renderer/search_extension.cc

Issue 3809005: Moves instant back into flags. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 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 | « chrome/browser/views/options/options_group_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/search_extension.cc
diff --git a/chrome/renderer/search_extension.cc b/chrome/renderer/search_extension.cc
index 1a3f5438fbd069b04f6526858dc3430a0f0c605b..17bfd29921e6901f8cd7806f934ea6ba9bc6b04e 100644
--- a/chrome/renderer/search_extension.cc
+++ b/chrome/renderer/search_extension.cc
@@ -86,7 +86,11 @@ v8::Handle<v8::Value> SearchExtensionWrapper::SetSuggestResult(
}
v8::Extension* SearchExtension::Get() {
- return new SearchExtensionWrapper();
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableMatchPreview)) {
+ return new SearchExtensionWrapper();
+ }
+ return NULL;
}
} // namespace extensions_v8
« no previous file with comments | « chrome/browser/views/options/options_group_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698