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

Unified Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/automation/automation_provider_observers.cc
===================================================================
--- chrome/browser/automation/automation_provider_observers.cc (revision 115777)
+++ chrome/browser/automation/automation_provider_observers.cc (working copy)
@@ -1150,7 +1150,7 @@
reply_with_json_(reply_with_json),
reply_message_(reply_message) {
registrar_.Add(this, chrome::NOTIFICATION_FIND_RESULT_AVAILABLE,
- content::Source<TabContents>(parent_tab));
+ content::Source<WebContents>(parent_tab));
}
FindInPageNotificationObserver::~FindInPageNotificationObserver() {
@@ -1363,11 +1363,11 @@
PageTranslatedObserver::PageTranslatedObserver(AutomationProvider* automation,
IPC::Message* reply_message,
- TabContents* tab_contents)
+ WebContents* web_contents)
: automation_(automation->AsWeakPtr()),
reply_message_(reply_message) {
registrar_.Add(this, chrome::NOTIFICATION_PAGE_TRANSLATED,
- content::Source<TabContents>(tab_contents));
+ content::Source<WebContents>(web_contents));
}
PageTranslatedObserver::~PageTranslatedObserver() {}
@@ -1402,7 +1402,7 @@
tab_contents_(tab_contents),
translate_bar_(translate_bar) {
registrar_.Add(this, chrome::NOTIFICATION_TAB_LANGUAGE_DETERMINED,
- content::Source<TabContents>(tab_contents));
+ content::Source<WebContents>(tab_contents));
}
TabLanguageDeterminedObserver::~TabLanguageDeterminedObserver() {}
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.h ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698