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

Unified Diff: chrome/browser/search_engines/prepopulated_engines.cc

Issue 11377049: Moving prepopulated search engines to a JSON file. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Answered review comments. Created 8 years, 1 month 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
Index: chrome/browser/search_engines/prepopulated_engines.cc
diff --git a/chrome/browser/search_engines/prepopulated_engines.cc b/chrome/browser/search_engines/prepopulated_engines.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9ec63b865c06780ff43dc6757eddcb80e0ee4ab0
--- /dev/null
+++ b/chrome/browser/search_engines/prepopulated_engines.cc
@@ -0,0 +1,57 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// GENERATED FROM THE SCHEMA DEFINITION AND CONTENT IN
+// chrome/browser/search_engines/prepopulated_engines_schema.json
+// chrome/browser/search_engines/prepopulated_engines.json
+// DO NOT EDIT.
+
+#include <stdio.h>
+
+#include "chrome/browser/search_engines/prepopulated_engines.h"
+
+namespace TemplateURLPrepopulateData {
+
+const int kCurrentDataVersion = 45;
+
+const PrepopulatedEngine google = {
+ L"Google",
+ L"google.com",
+ "http://www.google.com/favicon.ico",
+ "{google:baseURL}search?q={searchTerms}&{google:RLZ} {google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}sourceid=chrome&ie={inputEncoding}",
+ "UTF-8",
+ "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client=chrome&hl={language}&q={searchTerms}&sugkey={google:suggestAPIKeyParameter}",
+ "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}{google:instantEnabledParameter}ie={inputEncoding}",
+ "[\"{google:baseURL}#q={searchTerms}\", \"{google:baseURL}search#q={searchTerms}\", \"{google:baseURL}webhp#q={searchTerms}\"]",
+ SEARCH_ENGINE_GOOGLE,
+ 1,
+};
+
+const PrepopulatedEngine altavista = {
+ L"AltaVista",
+ L"altavista.com",
+ "http://www.altavista.com/favicon.ico",
+ "http://www.altavista.com/web/results?q={searchTerms}",
+ "UTF-8",
+ NULL,
+ NULL,
+ NULL,
+ SEARCH_ENGINE_ALTAVISTA,
+ 89,
+};
+
+const PrepopulatedEngine abcsok = {
+ L"ABC S\x00f8k",
+ L"abcsok.no",
+ "http://abcsok.no/favicon.ico",
+ "http://abcsok.no/index.html?q={searchTerms}",
+ "UTF-8",
+ NULL,
+ NULL,
+ NULL,
+ SEARCH_ENGINE_ABCSOK,
+ 72,
+};
+
+} // namespace TemplateURLPrepopulateData

Powered by Google App Engine
This is Rietveld 408576698