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

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

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_change_processor.h" 5 #include "chrome/browser/sync/glue/theme_change_processor.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/browser_theme_provider.h"
9 #include "chrome/browser/profile.h" 8 #include "chrome/browser/profile.h"
10 #include "chrome/browser/sync/engine/syncapi.h" 9 #include "chrome/browser/sync/engine/syncapi.h"
11 #include "chrome/browser/sync/glue/theme_util.h" 10 #include "chrome/browser/sync/glue/theme_util.h"
12 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" 11 #include "chrome/browser/sync/protocol/theme_specifics.pb.h"
12 #include "chrome/browser/themes/browser_theme_provider.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/notification_details.h" 14 #include "chrome/common/notification_details.h"
15 #include "chrome/common/notification_source.h" 15 #include "chrome/common/notification_source.h"
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 18
19 namespace { 19 namespace {
20 std::string GetThemeId(Extension* current_theme) { 20 std::string GetThemeId(Extension* current_theme) {
21 if (current_theme) { 21 if (current_theme) {
22 DCHECK(current_theme->is_theme()); 22 DCHECK(current_theme->is_theme());
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 Source<Profile>(profile_)); 206 Source<Profile>(profile_));
207 } 207 }
208 208
209 void ThemeChangeProcessor::StopObserving() { 209 void ThemeChangeProcessor::StopObserving() {
210 DCHECK(profile_); 210 DCHECK(profile_);
211 LOG(INFO) << "Unobserving all notifications"; 211 LOG(INFO) << "Unobserving all notifications";
212 notification_registrar_.RemoveAll(); 212 notification_registrar_.RemoveAll();
213 } 213 }
214 214
215 } // namespace browser_sync 215 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698