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

Unified Diff: chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc

Issue 23618036: Merge NOTIFICATION_RENDER_VIEW_HOST_CHANGED into NOTIFICATION_WEB_CONTENTS_SWAPPED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 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/speech/chrome_speech_recognition_manager_delegate.cc
diff --git a/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc b/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc
index 101297547eafe91bce6b6d6236e9b9ebdccd0c77..e2d991f936cbc1045f5ce9978af23389f17cf9f2 100644
--- a/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc
+++ b/chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc
@@ -160,7 +160,7 @@ class ChromeSpeechRecognitionManagerDelegate::TabWatcher
registrar_.reset(new content::NotificationRegistrar());
registrar_->Add(this,
- content::NOTIFICATION_WEB_CONTENTS_SWAPPED,
+ content::NOTIFICATION_RENDER_VIEW_HOST_CHANGED,
content::Source<WebContents>(web_contents));
registrar_->Add(this,
content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED,
@@ -173,7 +173,7 @@ class ChromeSpeechRecognitionManagerDelegate::TabWatcher
const content::NotificationDetails& details) OVERRIDE {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(type == content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED ||
- type == content::NOTIFICATION_WEB_CONTENTS_SWAPPED);
+ type == content::NOTIFICATION_RENDER_VIEW_HOST_CHANGED);
WebContents* web_contents = content::Source<WebContents>(source).ptr();
std::vector<WebContentsInfo>::iterator iter = FindWebContents(web_contents);
@@ -183,7 +183,7 @@ class ChromeSpeechRecognitionManagerDelegate::TabWatcher
registered_web_contents_.erase(iter);
registrar_->Remove(this,
- content::NOTIFICATION_WEB_CONTENTS_SWAPPED,
+ content::NOTIFICATION_RENDER_VIEW_HOST_CHANGED,
content::Source<WebContents>(web_contents));
registrar_->Remove(this,
content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED,
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/task_manager/tab_contents_resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698