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

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

Issue 10917198: Switch NOTIFICATION_TAB_PARENTED to use WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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 | « no previous file | chrome/browser/extensions/extension_tab_id_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index 52128018ca9486f152c965fe04211c5240ef5f3b..849c7cf9ad84af97466f5ddd9c386152edc6d6d4 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -385,8 +385,7 @@ void TabStripNotificationObserver::Observe(
const content::NotificationDetails& details) {
DCHECK_EQ(notification_, type);
if (type == chrome::NOTIFICATION_TAB_PARENTED) {
- ObserveTab(&content::Source<TabContents>(source)->web_contents()->
- GetController());
+ ObserveTab(&content::Source<content::WebContents>(source)->GetController());
} else if (type == content::NOTIFICATION_WEB_CONTENTS_DESTROYED) {
ObserveTab(&content::Source<content::WebContents>(source)->GetController());
} else {
@@ -2444,8 +2443,7 @@ void NewTabObserver::Observe(int type,
const content::NotificationDetails& details) {
DCHECK_EQ(chrome::NOTIFICATION_TAB_PARENTED, type);
NavigationController* controller =
- &(content::Source<TabContents>(source).ptr()->
- web_contents()->GetController());
+ &(content::Source<content::WebContents>(source).ptr()->GetController());
if (automation_) {
// TODO(phajdan.jr): Clean up this hack. We write the correct return type
// here, but don't send the message. NavigationNotificationObserver
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_tab_id_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698