diff options
| author | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-23 17:34:09 +0000 |
|---|---|---|
| committer | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-23 17:34:09 +0000 |
| commit | ec596191447ea56f894d1f32a98f83e8ca84a59d (patch) | |
| tree | 3fd75d5357078a8c1282415ca9937bc16dd458db /chrome/browser/extensions | |
| parent | 9f700fdfaa462ccee242056ccb199a47b806b14c (diff) | |
| download | chromium_src-ec596191447ea56f894d1f32a98f83e8ca84a59d.zip chromium_src-ec596191447ea56f894d1f32a98f83e8ca84a59d.tar.gz chromium_src-ec596191447ea56f894d1f32a98f83e8ca84a59d.tar.bz2 | |
Use current profile rather than AllSources for notification sources when registering.
Fixed up potential slicing in extension_history_api.cc.
Removed unnecessary forward declaration in typed_url_model_associator.h.
BUG=94039
TEST=All unit tests pass.
Review URL: http://codereview.chromium.org/7745055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
| -rw-r--r-- | chrome/browser/extensions/extension_history_api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_history_api.cc b/chrome/browser/extensions/extension_history_api.cc index cf699e00..b88113c 100644 --- a/chrome/browser/extensions/extension_history_api.cc +++ b/chrome/browser/extensions/extension_history_api.cc @@ -69,8 +69,8 @@ ExtensionHistoryEventRouter::ExtensionHistoryEventRouter() {} ExtensionHistoryEventRouter::~ExtensionHistoryEventRouter() {} void ExtensionHistoryEventRouter::ObserveProfile(Profile* profile) { - NotificationSource source = Source<Profile>(profile); CHECK(registrar_.IsEmpty()); + const Source<Profile> source = Source<Profile>(profile); registrar_.Add(this, chrome::NOTIFICATION_HISTORY_URL_VISITED, source); |
