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

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

Issue 8341094: Changed change processors to use ScopedStopObserving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary call to StartObserving(). Created 9 years, 1 month 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) 2011 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 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 29 matching lines...) Expand all
40 virtual void ApplyChangesFromSyncModel( 40 virtual void ApplyChangesFromSyncModel(
41 const sync_api::BaseTransaction* trans, 41 const sync_api::BaseTransaction* trans,
42 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE; 42 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE;
43 43
44 protected: 44 protected:
45 // ChangeProcessor implementation. 45 // ChangeProcessor implementation.
46 virtual void StartImpl(Profile* profile) OVERRIDE; 46 virtual void StartImpl(Profile* profile) OVERRIDE;
47 virtual void StopImpl() OVERRIDE; 47 virtual void StopImpl() OVERRIDE;
48 48
49 private: 49 private:
50 friend class ScopedStopObserving<ThemeChangeProcessor>;
50 void StartObserving(); 51 void StartObserving();
51 void StopObserving(); 52 void StopObserving();
52 53
53 content::NotificationRegistrar notification_registrar_; 54 content::NotificationRegistrar notification_registrar_;
54 // Profile associated with the ThemeService. Non-NULL iff |running()| is 55 // Profile associated with the ThemeService. Non-NULL iff |running()| is
55 // true. 56 // true.
56 Profile* profile_; 57 Profile* profile_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(ThemeChangeProcessor); 59 DISALLOW_COPY_AND_ASSIGN(ThemeChangeProcessor);
59 }; 60 };
60 61
61 } // namespace browser_sync 62 } // namespace browser_sync
62 63
63 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_ 64 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_change_processor.cc ('k') | chrome/browser/sync/glue/theme_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698