Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index eaaf5b320c9754541a8c63f7af0c292e8895cd76..d8106804bead74d03b136120cc7fd2492e3c0e04 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -568,7 +568,8 @@ void TestingAutomationProvider::ShowCollectedCookiesDialog( |
NavigationController* controller = tab_tracker_->GetResource(handle); |
TabContents* tab_contents = controller->tab_contents(); |
Browser* browser = Browser::GetBrowserForController(controller, NULL); |
- browser->ShowCollectedCookiesDialog(tab_contents); |
+ browser->ShowCollectedCookiesDialog( |
+ TabContentsWrapper::GetCurrentWrapperForContents(tab_contents)); |
*success = true; |
} |
} |