| Index: chrome/browser/history/history.cc
|
| ===================================================================
|
| --- chrome/browser/history/history.cc (revision 10992)
|
| +++ chrome/browser/history/history.cc (working copy)
|
| @@ -99,7 +99,8 @@
|
| : thread_(new ChromeThread(ChromeThread::HISTORY)),
|
| profile_(NULL),
|
| backend_loaded_(false) {
|
| - if (NotificationService::current()) { // Is NULL when running generate_profile.
|
| + // Is NULL when running generate_profile.
|
| + if (NotificationService::current()) {
|
| NotificationService::current()->AddObserver(
|
| this, NotificationType::HISTORY_URLS_DELETED,
|
| Source<Profile>(profile_));
|
| @@ -119,7 +120,8 @@
|
| Cleanup();
|
|
|
| // Unregister for notifications.
|
| - if (NotificationService::current()) { // Is NULL when running generate_profile.
|
| + // Is NULL when running generate_profile.
|
| + if (NotificationService::current()) {
|
| NotificationService::current()->RemoveObserver(
|
| this, NotificationType::HISTORY_URLS_DELETED,
|
| Source<Profile>(profile_));
|
|
|