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

Unified Diff: chrome/browser/translate/translate_tab_helper.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
Index: chrome/browser/translate/translate_tab_helper.cc
===================================================================
--- chrome/browser/translate/translate_tab_helper.cc (revision 106380)
+++ chrome/browser/translate/translate_tab_helper.cc (working copy)
@@ -8,7 +8,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/render_messages.h"
#include "content/browser/tab_contents/tab_contents.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
TranslateTabHelper::TranslateTabHelper(TabContents* tab_contents)
: TabContentsObserver(tab_contents),
@@ -42,7 +42,7 @@
language_state_.LanguageDetermined(language, page_translatable);
std::string lang = language;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TAB_LANGUAGE_DETERMINED,
content::Source<TabContents>(tab_contents()),
content::Details<std::string>(&lang));
@@ -55,7 +55,7 @@
language_state_.set_current_language(translated_lang);
language_state_.set_translation_pending(false);
PageTranslatedDetails details(original_lang, translated_lang, error_type);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PAGE_TRANSLATED,
content::Source<TabContents>(tab_contents()),
content::Details<PageTranslatedDetails>(&details));
« no previous file with comments | « chrome/browser/translate/translate_manager.cc ('k') | chrome/browser/ui/app_modal_dialogs/app_modal_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698