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

Side by Side Diff: chrome/common/pref_names.cc

Issue 229763005: Store default search provider data in dictionary pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: put constants in a namespace Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/common/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; 338 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit";
339 339
340 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie 340 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie
341 // blocking policy. This has been superseded by kDefaultContentSettings + 341 // blocking policy. This has been superseded by kDefaultContentSettings +
342 // kBlockThirdPartyCookies. 342 // kBlockThirdPartyCookies.
343 // 0 - allow all cookies. 343 // 0 - allow all cookies.
344 // 1 - block third-party cookies 344 // 1 - block third-party cookies
345 // 2 - block all cookies 345 // 2 - block all cookies
346 const char kCookieBehavior[] = "security.cookie_behavior"; 346 const char kCookieBehavior[] = "security.cookie_behavior";
347 347
348 // A dictionary to hold all data related to the Default Search Engine.
349 // Eventually, this should replace all the data stored in the
350 // default_search_provider.* prefs below.
351 const char kDefaultSearchProviderData[] =
352 "default_search_provider.template_url_data";
353
348 // The GUID of the synced default search provider. Note that this acts like a 354 // The GUID of the synced default search provider. Note that this acts like a
349 // pointer to which synced search engine should be the default, rather than the 355 // pointer to which synced search engine should be the default, rather than the
350 // prefs below which describe the locally saved default search provider details 356 // prefs below which describe the locally saved default search provider details
351 // (and are not synced). This is ignored in the case of the default search 357 // (and are not synced). This is ignored in the case of the default search
352 // provider being managed by policy. 358 // provider being managed by policy.
353 const char kSyncedDefaultSearchProviderGUID[] = 359 const char kSyncedDefaultSearchProviderGUID[] =
354 "default_search_provider.synced_guid"; 360 "default_search_provider.synced_guid";
355 361
356 // Whether having a default search provider is enabled. 362 // Whether having a default search provider is enabled.
357 const char kDefaultSearchProviderEnabled[] = 363 const char kDefaultSearchProviderEnabled[] =
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 // "mapped_title" entries, detailing the bookmark target URL (if any), the title 2598 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2593 // given by the PartnerBookmarksProvider and either the user-visible renamed 2599 // given by the PartnerBookmarksProvider and either the user-visible renamed
2594 // title or an empty string if the bookmark node was removed. 2600 // title or an empty string if the bookmark node was removed.
2595 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; 2601 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2596 #endif 2602 #endif
2597 2603
2598 // Whether DNS Quick Check is disabled in proxy resolution. 2604 // Whether DNS Quick Check is disabled in proxy resolution.
2599 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; 2605 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2600 2606
2601 } // namespace prefs 2607 } // namespace prefs
OLDNEW
« chrome/browser/search_engines/template_url_service_unittest.cc ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698