OLD | NEW |
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_install_ui.h" | 5 #include "chrome/browser/extensions/extension_install_ui.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | |
11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
12 #include "base/file_util.h" | 11 #include "base/file_util.h" |
13 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
14 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/browser_list.h" | 16 #include "chrome/browser/browser_list.h" |
18 #include "chrome/browser/browser_window.h" | 17 #include "chrome/browser/browser_window.h" |
19 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" | 18 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" |
20 #include "chrome/browser/platform_util.h" | 19 #include "chrome/browser/platform_util.h" |
21 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
23 #include "chrome/browser/tabs/tab_strip_model.h" | 22 #include "chrome/browser/tabs/tab_strip_model.h" |
24 #include "chrome/common/extensions/extension.h" | 23 #include "chrome/common/extensions/extension.h" |
25 #include "chrome/common/extensions/extension_action.h" | 24 #include "chrome/common/extensions/extension_action.h" |
26 #include "chrome/common/extensions/extension_icon_set.h" | 25 #include "chrome/common/extensions/extension_icon_set.h" |
27 #include "chrome/common/extensions/extension_resource.h" | 26 #include "chrome/common/extensions/extension_resource.h" |
28 #include "chrome/common/extensions/url_pattern.h" | 27 #include "chrome/common/extensions/url_pattern.h" |
29 #include "chrome/common/notification_service.h" | 28 #include "chrome/common/notification_service.h" |
30 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
31 #include "grit/chromium_strings.h" | 30 #include "grit/chromium_strings.h" |
32 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
33 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
| 33 #include "ui/base/resource/resource_bundle.h" |
34 | 34 |
35 #if defined(OS_MACOSX) | 35 #if defined(OS_MACOSX) |
36 #include "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.h
" | 36 #include "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.h
" |
37 #endif | 37 #endif |
38 | 38 |
39 #if defined(TOOLKIT_VIEWS) | 39 #if defined(TOOLKIT_VIEWS) |
40 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" | 40 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" |
41 #endif | 41 #endif |
42 | 42 |
43 #if defined(TOOLKIT_GTK) | 43 #if defined(TOOLKIT_GTK) |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 TabContents* tab_contents, const Extension* new_theme, | 313 TabContents* tab_contents, const Extension* new_theme, |
314 const std::string& previous_theme_id, bool previous_use_system_theme) { | 314 const std::string& previous_theme_id, bool previous_use_system_theme) { |
315 #if defined(TOOLKIT_GTK) | 315 #if defined(TOOLKIT_GTK) |
316 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 316 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
317 previous_theme_id, previous_use_system_theme); | 317 previous_theme_id, previous_use_system_theme); |
318 #else | 318 #else |
319 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 319 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
320 previous_theme_id); | 320 previous_theme_id); |
321 #endif | 321 #endif |
322 } | 322 } |
OLD | NEW |