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

Side by Side Diff: chrome/browser/extensions/extension_disabled_infobar_delegate.cc

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_disabled_infobar_delegate.h" 5 #include "chrome/browser/extensions/extension_disabled_infobar_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/extensions/extension_install_ui.h" 11 #include "chrome/browser/extensions/extension_install_ui.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/infobars/infobar_tab_helper.h" 13 #include "chrome/browser/infobars/infobar_tab_helper.h"
14 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 14 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
15 #include "chrome/browser/ui/browser_list.h" 15 #include "chrome/browser/ui/browser_list.h"
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/extensions/extension_file_util.h" 18 #include "chrome/common/extensions/extension_file_util.h"
19 #include "chrome/common/extensions/extension_resource.h" 19 #include "chrome/common/extensions/extension_resource.h"
20 #include "content/browser/tab_contents/tab_contents.h"
21 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/notification_details.h" 21 #include "content/public/browser/notification_details.h"
23 #include "content/public/browser/notification_source.h" 22 #include "content/public/browser/notification_source.h"
23 #include "content/public/browser/web_contents.h"
24 #include "grit/generated_resources.h" 24 #include "grit/generated_resources.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 26
27 // ExtensionDisabledDialogDelegate -------------------------------------------- 27 // ExtensionDisabledDialogDelegate --------------------------------------------
28 28
29 class ExtensionDisabledDialogDelegate 29 class ExtensionDisabledDialogDelegate
30 : public ExtensionInstallUI::Delegate, 30 : public ExtensionInstallUI::Delegate,
31 public base::RefCountedThreadSafe<ExtensionDisabledDialogDelegate> { 31 public base::RefCountedThreadSafe<ExtensionDisabledDialogDelegate> {
32 public: 32 public:
33 ExtensionDisabledDialogDelegate(Profile* profile, 33 ExtensionDisabledDialogDelegate(Profile* profile,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 InfoBarTabHelper* infobar_helper = tab_contents->infobar_tab_helper(); 186 InfoBarTabHelper* infobar_helper = tab_contents->infobar_tab_helper();
187 infobar_helper->AddInfoBar( 187 infobar_helper->AddInfoBar(
188 new ExtensionDisabledInfobarDelegate(infobar_helper, service, extension)); 188 new ExtensionDisabledInfobarDelegate(infobar_helper, service, extension));
189 } 189 }
190 190
191 void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile, 191 void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile,
192 const Extension* extension) { 192 const Extension* extension) {
193 // This object manages its own lifetime. 193 // This object manages its own lifetime.
194 new ExtensionDisabledDialogDelegate(profile, service, extension); 194 new ExtensionDisabledDialogDelegate(profile, service, extension);
195 } 195 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_devtools_bridge.cc ('k') | chrome/browser/extensions/extension_message_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698