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

Unified Diff: chrome/browser/extensions/api/tabs/tabs.cc

Issue 10909282: Switch SnapshotTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/ui/pdf/pdf_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/tabs/tabs.cc
diff --git a/chrome/browser/extensions/api/tabs/tabs.cc b/chrome/browser/extensions/api/tabs/tabs.cc
index 37755111b5a6d212a386e3e478ee3b8199a08ec5..116f55ec42729c9f193c5ac68193f534b15f8ec6 100644
--- a/chrome/browser/extensions/api/tabs/tabs.cc
+++ b/chrome/browser/extensions/api/tabs/tabs.cc
@@ -1705,8 +1705,7 @@ void CaptureVisibleTabFunction::CopyFromBackingStoreComplete(
chrome::NOTIFICATION_TAB_SNAPSHOT_TAKEN,
content::Source<WebContents>(web_contents));
AddRef(); // Balanced in CaptureVisibleTabFunction::Observe().
- TabContents::FromWebContents(web_contents)->snapshot_tab_helper()->
- CaptureSnapshot();
+ SnapshotTabHelper::FromWebContents(web_contents)->CaptureSnapshot();
}
// If a backing store was not available in CaptureVisibleTabFunction::RunImpl,
« no previous file with comments | « no previous file | chrome/browser/ui/pdf/pdf_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698