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

Unified Diff: chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc

Issue 10912156: Move SessionID, CaptureVisibleTabFunction to WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase atop the extension tab helper change 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/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
diff --git a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
index 835076252229743590e4ce7aa38d1a428399dcb4..74655c04483c7c12fdc42a9960e6d59901ed74be 100644
--- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
+++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
@@ -775,7 +775,7 @@ ToDataUrlOffscreenTabFunction::ToDataUrlOffscreenTabFunction() {}
ToDataUrlOffscreenTabFunction::~ToDataUrlOffscreenTabFunction() {}
bool ToDataUrlOffscreenTabFunction::GetTabToCapture(
- WebContents** web_contents, TabContents** tab_contents) {
+ WebContents** web_contents) {
int offscreen_tab_id;
EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &offscreen_tab_id));
@@ -788,7 +788,6 @@ bool ToDataUrlOffscreenTabFunction::GetTabToCapture(
return false;
*web_contents = offscreen_tab->web_contents();
- *tab_contents = offscreen_tab->tab_contents();
return true;
}
« no previous file with comments | « chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.h ('k') | chrome/browser/extensions/api/tabs/tabs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698