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

Unified Diff: chrome/renderer/external_extension.cc

Issue 5593001: Expose IsDefaultSearchProvider and SetDefaultSearchProvider by default on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: v1 Created 10 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/external_extension.cc
diff --git a/chrome/renderer/external_extension.cc b/chrome/renderer/external_extension.cc
index a34b6a494c60960ec1b6fed27adf072940cd49dd..60d97773198f8a729497c47403361091e8664c46 100644
--- a/chrome/renderer/external_extension.cc
+++ b/chrome/renderer/external_extension.cc
@@ -46,8 +46,12 @@ const char* const kExternalExtensionName = "v8/External";
// with an extra parameter to indicate if the provider should be the default"
// be available?
static bool EnableSearchProviderV2() {
+#if defined(OS_WIN)
+ return true;
+#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableSearchProviderApiV2);
+#endif
}
class ExternalExtensionWrapper : public v8::Extension {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698