diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-17 17:08:12 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-17 17:08:12 +0000 |
commit | 459f3500f70b762892dd1e4ef955b770e4a0bbd4 (patch) | |
tree | 9eec0119b0ff446cfc7161a04b2d2275e7e362a3 /chrome/browser/automation | |
parent | 022ba207aba1e2eb0cfd7135a7f3ff0ccc09cc9a (diff) | |
download | chromium_src-459f3500f70b762892dd1e4ef955b770e4a0bbd4.zip chromium_src-459f3500f70b762892dd1e4ef955b770e4a0bbd4.tar.gz chromium_src-459f3500f70b762892dd1e4ef955b770e4a0bbd4.tar.bz2 |
Switch NOTIFICATION_TAB_PARENTED to use WebContents.
BUG=107201
TEST=no visible change
Review URL: https://chromiumcodereview.appspot.com/10917198
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_provider_observers.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc index 5212801..849c7cf 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 |