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

Unified Diff: chrome/browser/history/history.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/history/history_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history.cc
===================================================================
--- chrome/browser/history/history.cc (revision 106380)
+++ chrome/browser/history/history.cc (working copy)
@@ -49,7 +49,7 @@
#include "chrome/common/url_constants.h"
#include "content/browser/browser_thread.h"
#include "content/browser/download/download_persistent_store_info.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -97,11 +97,10 @@
int type,
history::HistoryDetails* details) OVERRIDE {
// Send the notification on the history thread.
- if (NotificationService::current()) {
+ if (content::NotificationService::current()) {
content::Details<history::HistoryDetails> det(details);
- NotificationService::current()->Notify(type,
- content::Source<Profile>(profile_),
- det);
+ content::NotificationService::current()->Notify(
+ type, content::Source<Profile>(profile_), det);
}
// Send the notification to the history service on the main thread.
message_loop_->PostTask(
@@ -792,7 +791,7 @@
// this to the proper type.
content::Details<history::HistoryDetails> det(details_deleted);
- NotificationService::current()->Notify(type, source, det);
+ content::NotificationService::current()->Notify(type, source, det);
}
void HistoryService::LoadBackendIfNecessary() {
@@ -822,7 +821,7 @@
return;
}
backend_loaded_ = true;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_HISTORY_LOADED,
content::Source<Profile>(profile_),
content::Details<HistoryService>(this));
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/history/history_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698