| 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/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/rand_util.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/profile.h" | 20 #include "chrome/browser/profile.h" |
| 22 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
| 23 #if defined(TOOLKIT_VIEWS) | 22 #if defined(TOOLKIT_VIEWS) |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 TabContents* tab_contents, Extension* new_theme, | 362 TabContents* tab_contents, Extension* new_theme, |
| 364 const std::string& previous_theme_id, bool previous_use_system_theme) { | 363 const std::string& previous_theme_id, bool previous_use_system_theme) { |
| 365 #if defined(TOOLKIT_GTK) | 364 #if defined(TOOLKIT_GTK) |
| 366 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 365 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
| 367 previous_theme_id, previous_use_system_theme); | 366 previous_theme_id, previous_use_system_theme); |
| 368 #else | 367 #else |
| 369 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 368 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
| 370 previous_theme_id); | 369 previous_theme_id); |
| 371 #endif | 370 #endif |
| 372 } | 371 } |
| OLD | NEW |