summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 22:57:11 +0000
committerlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 22:57:11 +0000
commit394f2382df70ac8e8f5536df083cdd87f79aaee6 (patch)
tree9f09cfa534c1120e5f7137185f1a056d5b783a55
parent1afd80882c02756e0df134c823e05d2f034e5b62 (diff)
downloadchromium_src-394f2382df70ac8e8f5536df083cdd87f79aaee6.zip
chromium_src-394f2382df70ac8e8f5536df083cdd87f79aaee6.tar.gz
chromium_src-394f2382df70ac8e8f5536df083cdd87f79aaee6.tar.bz2
Expose IsDefaultSearchProvider and SetDefaultSearchProvider by default on Windows.
BUG=65109 TEST=Verified that the api isn't present on OSX with this change and that it is on Windows. Review URL: http://codereview.chromium.org/5593001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68092 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/renderer/external_extension.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/external_extension.cc b/chrome/renderer/external_extension.cc
index a34b6a4..60d9777 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 {