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

Unified Diff: chrome/browser/themes/theme_syncable_service.cc

Issue 1229953004: [Sync] Give custom themes priority over default themes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/themes/theme_syncable_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_syncable_service.cc
diff --git a/chrome/browser/themes/theme_syncable_service.cc b/chrome/browser/themes/theme_syncable_service.cc
index 5b8a2d8344e4d49c5b63a36e05bb9b8fa3f383bd..09fd2a1da64ad2649aaa52e1ab1044060f71ad66 100644
--- a/chrome/browser/themes/theme_syncable_service.cc
+++ b/chrome/browser/themes/theme_syncable_service.cc
@@ -86,8 +86,11 @@ syncer::SyncMergeResult ThemeSyncableService::MergeDataAndStartSyncing(
initial_sync_data.rbegin(); sync_data != initial_sync_data.rend();
++sync_data) {
if (sync_data->GetSpecifics().has_theme()) {
- MaybeSetTheme(current_specifics, *sync_data);
- return merge_result;
+ if (!current_specifics.use_custom_theme() ||
+ sync_data->GetSpecifics().theme().use_custom_theme()) {
+ MaybeSetTheme(current_specifics, *sync_data);
+ return merge_result;
+ }
}
}
« no previous file with comments | « no previous file | chrome/browser/themes/theme_syncable_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698