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

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

Issue 10831338: Ensure that MergeDataAndStartSyncing considers already synced entries when setting the synced DSP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « no previous file | chrome/browser/search_engines/template_url_service_sync_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url_service.cc
===================================================================
--- chrome/browser/search_engines/template_url_service.cc (revision 151691)
+++ chrome/browser/search_engines/template_url_service.cc (working copy)
@@ -1155,6 +1155,10 @@
local_data_map[local_turl->sync_guid()]));
}
local_data_map.erase(iter->first);
+
+ // Attempt to reset the default search provider incase it was changed
Nicolas Zea 2012/08/15 21:46:28 incase -> in case
SteveT 2012/08/15 21:56:57 Done.
+ // since the last time search engines was synced.
+ SetDefaultSearchProviderIfNewlySynced(local_turl->sync_guid());
Nicolas Zea 2012/08/15 22:26:03 Would moving this to the end of MergeData and call
SteveT 2012/08/16 19:50:53 That makes a lot of sense for MergeDataAndStartSyn
} else {
// The search engine from the cloud has not been synced locally. Merge it
// into our local model. This will handle any conflicts with local (and
« no previous file with comments | « no previous file | chrome/browser/search_engines/template_url_service_sync_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698