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

Side by Side Diff: chrome/browser/sync/glue/theme_util.cc

Issue 9668028: [Sync] Create new top-level sync/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 9 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) 2011 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/browser/sync/glue/theme_util.h" 5 #include "chrome/browser/sync/glue/theme_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/extension_updater.h" 12 #include "chrome/browser/extensions/extension_updater.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/sync/protocol/theme_specifics.pb.h"
15 #include "chrome/browser/themes/theme_service.h" 14 #include "chrome/browser/themes/theme_service.h"
16 #include "chrome/browser/themes/theme_service_factory.h" 15 #include "chrome/browser/themes/theme_service_factory.h"
17 #include "chrome/common/extensions/extension.h" 16 #include "chrome/common/extensions/extension.h"
18 #include "chrome/common/extensions/extension_constants.h" 17 #include "chrome/common/extensions/extension_constants.h"
19 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "sync/protocol/theme_specifics.pb.h"
20 20
21 namespace browser_sync { 21 namespace browser_sync {
22 22
23 const char kCurrentThemeClientTag[] = "current_theme"; 23 const char kCurrentThemeClientTag[] = "current_theme";
24 24
25 namespace { 25 namespace {
26 26
27 // TODO(akalin): Remove this. 27 // TODO(akalin): Remove this.
28 bool IsSystemThemeDistinctFromDefaultTheme() { 28 bool IsSystemThemeDistinctFromDefaultTheme() {
29 #if defined(TOOLKIT_USES_GTK) 29 #if defined(TOOLKIT_USES_GTK)
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const sync_pb::ThemeSpecifics& theme_specifics, Profile* profile) { 178 const sync_pb::ThemeSpecifics& theme_specifics, Profile* profile) {
179 DCHECK(profile); 179 DCHECK(profile);
180 sync_pb::ThemeSpecifics old_theme_specifics; 180 sync_pb::ThemeSpecifics old_theme_specifics;
181 GetThemeSpecificsFromCurrentTheme(profile, &old_theme_specifics); 181 GetThemeSpecificsFromCurrentTheme(profile, &old_theme_specifics);
182 if (!AreThemeSpecificsEqual(old_theme_specifics, theme_specifics)) { 182 if (!AreThemeSpecificsEqual(old_theme_specifics, theme_specifics)) {
183 SetCurrentThemeFromThemeSpecifics(theme_specifics, profile); 183 SetCurrentThemeFromThemeSpecifics(theme_specifics, profile);
184 } 184 }
185 } 185 }
186 186
187 } // namespace browser_sync 187 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/theme_model_associator.cc ('k') | chrome/browser/sync/glue/theme_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698