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

Unified Diff: chrome/browser/extensions/speech_input/extension_speech_input_manager.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/extensions/speech_input/extension_speech_input_manager.cc
===================================================================
--- chrome/browser/extensions/speech_input/extension_speech_input_manager.cc (revision 106380)
+++ chrome/browser/extensions/speech_input/extension_speech_input_manager.cc (working copy)
@@ -17,7 +17,7 @@
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
#include "content/browser/browser_thread.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
using namespace speech_input;
@@ -272,7 +272,7 @@
state_ = kRecording;
VLOG(1) << "Sending start notification";
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_SPEECH_INPUT_RECORDING_STARTED,
content::Source<Profile>(profile_),
content::Details<std::string>(&extension_id_in_use_));
@@ -405,7 +405,7 @@
// Will set the error property in the ongoing extension function calls.
ExtensionError details(extension_id, error);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_SPEECH_INPUT_FAILED,
content::Source<Profile>(profile_),
content::Details<ExtensionError>(&details));
@@ -604,7 +604,7 @@
std::string extension_id = extension_id_in_use_;
ResetToIdleState();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_SPEECH_INPUT_RECORDING_STOPPED,
// Guarded by the state_ == kShutdown check.
content::Source<Profile>(profile_),

Powered by Google App Engine
This is Rietveld 408576698