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

Unified Diff: chrome/browser/extensions/extension_infobar_module.cc

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/extension_infobar_module.cc
===================================================================
--- chrome/browser/extensions/extension_infobar_module.cc (revision 66453)
+++ chrome/browser/extensions/extension_infobar_module.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/browser/extensions/extension_tabs_module_constants.h"
#include "chrome/browser/tab_contents/infobar_delegate.h"
#include "chrome/browser/tab_contents/tab_contents.h"
+#include "chrome/browser/tab_contents_wrapper.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_error_utils.h"
@@ -36,7 +37,7 @@
GURL url = extension->GetResourceURL(extension->url(), html_path);
Browser* browser = NULL;
- TabContents* tab_contents = NULL;
+ TabContentsWrapper* tab_contents = NULL;
if (!ExtensionTabUtil::GetTabById(
tab_id,
profile(),
@@ -51,8 +52,9 @@
return false;
}
- tab_contents->AddInfoBar(
- new ExtensionInfoBarDelegate(browser, tab_contents, GetExtension(), url));
+ tab_contents->tab_contents()->AddInfoBar(
+ new ExtensionInfoBarDelegate(browser, tab_contents->tab_contents(),
+ GetExtension(), url));
// TODO(finnur): Return the actual DOMWindow object. Bug 26463.
result_.reset(ExtensionTabUtil::CreateWindowValue(browser, false));

Powered by Google App Engine
This is Rietveld 408576698