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

Unified Diff: chrome/browser/extensions/api/font_settings/font_settings_api.h

Issue 11366074: Coalesce event router Init calls into their constructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aa Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/font_settings/font_settings_api.h
diff --git a/chrome/browser/extensions/api/font_settings/font_settings_api.h b/chrome/browser/extensions/api/font_settings/font_settings_api.h
index 266b9627175b56da6ee4486632769758e8441258..a81c7a9dc2a025979e789459ebc5bc76eb1169d6 100644
--- a/chrome/browser/extensions/api/font_settings/font_settings_api.h
+++ b/chrome/browser/extensions/api/font_settings/font_settings_api.h
@@ -25,15 +25,10 @@ class FontSettingsEventRouter : public PrefObserver {
public:
// Constructor for observing pref changed events on |profile|. Stores a
// pointer to |profile| but does not take ownership. |profile| must be
- // non-NULL and remain alive for the lifetime of the instance. Init() must be
- // called to start observing pref changed events.
+ // non-NULL and remain alive for the lifetime of the instance.
explicit FontSettingsEventRouter(Profile* profile);
virtual ~FontSettingsEventRouter();
- // Starts observing pref changed events on the profile. Must not be called
- // more than once.
- void Init();
-
private:
typedef std::pair<std::string, std::string> EventAndKeyPair;
// Map of pref name to a pair of event name and key (defined in the extension
« no previous file with comments | « chrome/browser/extensions/api/cookies/cookies_api.cc ('k') | chrome/browser/extensions/api/font_settings/font_settings_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698