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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler.cc

Issue 7669052: Added DataTypeController integration and UI surfacing for syncing Search Engines. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed notification registration. Created 9 years, 4 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/ui/webui/options/personal_options_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_setup_handler.cc
===================================================================
--- chrome/browser/ui/webui/sync_setup_handler.cc (revision 98647)
+++ chrome/browser/ui/webui/sync_setup_handler.cc (working copy)
@@ -113,6 +113,12 @@
if (sync_typed_urls)
config->data_types.insert(syncable::TYPED_URLS);
+ bool sync_search_engines;
+ if (!result->GetBoolean("syncSearchEngines", &sync_search_engines))
+ return false;
+ if (sync_search_engines)
+ config->data_types.insert(syncable::SEARCH_ENGINES);
+
bool sync_sessions;
if (!result->GetBoolean("syncSessions", &sync_sessions))
return false;
@@ -232,6 +238,7 @@
{ "extensions", IDS_SYNC_DATATYPE_EXTENSIONS },
{ "typedURLs", IDS_SYNC_DATATYPE_TYPED_URLS },
{ "apps", IDS_SYNC_DATATYPE_APPS },
+ { "searchEngines", IDS_SYNC_DATATYPE_SEARCH_ENGINES },
{ "foreignSessions", IDS_SYNC_DATATYPE_SESSIONS },
{ "syncZeroDataTypesError", IDS_SYNC_ZERO_DATA_TYPES_ERROR },
{ "abortedError", IDS_SYNC_SETUP_ABORTED_BY_PENDING_CLEAR },
« no previous file with comments | « chrome/browser/ui/webui/options/personal_options_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698