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

Unified Diff: chrome/browser/accessibility/accessibility_extension_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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/debugger/debugger_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/accessibility/accessibility_extension_api.cc
diff --git a/chrome/browser/accessibility/accessibility_extension_api.cc b/chrome/browser/accessibility/accessibility_extension_api.cc
index d33d48245f605d042f8f2157e59544ec237a3ab3..675fc4a6769e3c661d0747f2755ae2d36b52ad4b 100644
--- a/chrome/browser/accessibility/accessibility_extension_api.cc
+++ b/chrome/browser/accessibility/accessibility_extension_api.cc
@@ -15,7 +15,6 @@
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension_error_utils.h"
#include "content/public/browser/notification_service.h"
@@ -197,7 +196,7 @@ bool GetAlertsForTabFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &tab_id));
TabStripModel* tab_strip = NULL;
- TabContents* contents = NULL;
+ content::WebContents* contents = NULL;
int tab_index = -1;
if (!ExtensionTabUtil::GetTabById(tab_id, profile(), include_incognito(),
NULL, &tab_strip, &contents, &tab_index)) {
@@ -210,7 +209,7 @@ bool GetAlertsForTabFunction::RunImpl() {
ListValue* alerts_value = new ListValue;
InfoBarTabHelper* infobar_helper =
- InfoBarTabHelper::FromWebContents(contents->web_contents());
+ InfoBarTabHelper::FromWebContents(contents);
for (size_t i = 0; i < infobar_helper->GetInfoBarCount(); ++i) {
// TODO(hashimoto): Make other kind of alerts available. crosbug.com/24281
InfoBarDelegate* infobar_delegate = infobar_helper->GetInfoBarDelegateAt(i);
« no previous file with comments | « no previous file | chrome/browser/extensions/api/debugger/debugger_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698