| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" | 10 #include "app/resource_bundle.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/browser/browser_list.h" | 15 #include "chrome/browser/browser_list.h" |
| 16 #include "chrome/browser/browser_window.h" | 16 #include "chrome/browser/browser_window.h" |
| 17 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" | 17 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" |
| 18 #include "chrome/browser/platform_util.h" |
| 18 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
| 19 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
| 20 #if defined(TOOLKIT_VIEWS) // TODO(port) | 21 #if defined(TOOLKIT_VIEWS) // TODO(port) |
| 21 #include "chrome/browser/views/extensions/extension_installed_bubble.h" | 22 #include "chrome/browser/views/extensions/extension_installed_bubble.h" |
| 22 #elif defined(TOOLKIT_GTK) | 23 #elif defined(TOOLKIT_GTK) |
| 23 #include "chrome/browser/gtk/extension_installed_bubble_gtk.h" | 24 #include "chrome/browser/gtk/extension_installed_bubble_gtk.h" |
| 24 #endif | 25 #endif |
| 25 #include "chrome/common/extensions/extension.h" | 26 #include "chrome/common/extensions/extension.h" |
| 26 #include "chrome/common/notification_service.h" | 27 #include "chrome/common/notification_service.h" |
| 27 #include "chrome/common/platform_util.h" | |
| 28 #include "chrome/common/url_constants.h" | 28 #include "chrome/common/url_constants.h" |
| 29 #include "grit/browser_resources.h" | 29 #include "grit/browser_resources.h" |
| 30 #include "grit/chromium_strings.h" | 30 #include "grit/chromium_strings.h" |
| 31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
| 32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
| 33 | 33 |
| 34 #if defined(TOOLKIT_GTK) | 34 #if defined(TOOLKIT_GTK) |
| 35 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h" | 35 #include "chrome/browser/extensions/gtk_theme_installed_infobar_delegate.h" |
| 36 #include "chrome/browser/gtk/gtk_theme_provider.h" | 36 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 37 #endif | 37 #endif |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 TabContents* tab_contents, Extension* new_theme, | 359 TabContents* tab_contents, Extension* new_theme, |
| 360 const std::string& previous_theme_id, bool previous_use_system_theme) { | 360 const std::string& previous_theme_id, bool previous_use_system_theme) { |
| 361 #if defined(TOOLKIT_GTK) | 361 #if defined(TOOLKIT_GTK) |
| 362 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 362 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
| 363 previous_theme_id, previous_use_system_theme); | 363 previous_theme_id, previous_use_system_theme); |
| 364 #else | 364 #else |
| 365 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 365 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
| 366 previous_theme_id); | 366 previous_theme_id); |
| 367 #endif | 367 #endif |
| 368 } | 368 } |
| OLD | NEW |