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

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

Issue 11308012: Remove some TabContentses from extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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 3a0803d87cf9b0294aa0f76ae835f8caea0b2117..fe4cb750a77c34e835b5c42391c1cd13ce4efdcf 100644
--- a/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
+++ b/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc
@@ -807,7 +807,7 @@ bool UpdateOffscreenTabFunction::RunImpl() {
DictionaryValue* update_props;
EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(1, &update_props));
- tab_contents_ = offscreen_tab->tab_contents();
+ web_contents_ = offscreen_tab->tab_contents()->web_contents();
bool is_async = false;
if (!UpdateURLIfPresent(update_props, offscreen_tab_id, &is_async))
return false;
@@ -815,8 +815,7 @@ bool UpdateOffscreenTabFunction::RunImpl() {
// Update the width and height, if specified.
if (update_props->HasKey(tabs_keys::kWidthKey) ||
update_props->HasKey(tabs_keys::kHeightKey)) {
- const gfx::Size& size =
- tab_contents_->web_contents()->GetView()->GetContainerSize();
+ const gfx::Size& size = web_contents_->GetView()->GetContainerSize();
int width;
if (update_props->HasKey(tabs_keys::kWidthKey))

Powered by Google App Engine
This is Rietveld 408576698