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

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

Issue 10963061: Switch AutomationTabHelper to use WebContentsUserData. (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
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 fd1abfa264872c3018db6bb7af4a510bc0b7d152..3cccc86ae037adb7735d0257e10c7c2fe902bc81 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -4199,8 +4199,9 @@ void TestingAutomationProvider::HeapProfilerDump(
return;
}
- TabContents* tab_contents = TabContents::FromWebContents(web_contents);
- tab_contents->automation_tab_helper()->HeapProfilerDump(reason_string);
+ AutomationTabHelper* automation_tab_helper =
+ AutomationTabHelper::FromWebContents(web_contents);
+ automation_tab_helper->HeapProfilerDump(reason_string);
reply.SendSuccess(NULL);
return;
}
« no previous file with comments | « chrome/browser/automation/automation_tab_helper_unittest.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698