| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 DCHECK(hosts.size() == 0); | 76 DCHECK(hosts.size() == 0); |
| 77 if (extension->api_permissions().empty()) | 77 if (extension->api_permissions().empty()) |
| 78 return L""; | 78 return L""; |
| 79 else | 79 else |
| 80 return l10n_util::GetString(IDS_EXTENSION_PROMPT_WARNING_NEW_BROWSER); | 80 return l10n_util::GetString(IDS_EXTENSION_PROMPT_WARNING_NEW_BROWSER); |
| 81 } | 81 } |
| 82 | 82 |
| 83 #endif | 83 #endif |
| 84 | 84 |
| 85 } | 85 } // namespace |
| 86 | 86 |
| 87 ExtensionInstallUI::ExtensionInstallUI(Profile* profile) | 87 ExtensionInstallUI::ExtensionInstallUI(Profile* profile) |
| 88 : profile_(profile), ui_loop_(MessageLoop::current()) | 88 : profile_(profile), ui_loop_(MessageLoop::current()) |
| 89 #if defined(TOOLKIT_GTK) | 89 #if defined(TOOLKIT_GTK) |
| 90 ,previous_use_gtk_theme_(false) | 90 ,previous_use_gtk_theme_(false) |
| 91 #endif | 91 #endif |
| 92 { | 92 { |
| 93 } | 93 } |
| 94 | 94 |
| 95 void ExtensionInstallUI::ConfirmInstall(Delegate* delegate, | 95 void ExtensionInstallUI::ConfirmInstall(Delegate* delegate, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 #else | 237 #else |
| 238 new ThemeInstalledInfoBarDelegate(tab_contents, | 238 new ThemeInstalledInfoBarDelegate(tab_contents, |
| 239 new_theme->name(), previous_theme_id_); | 239 new_theme->name(), previous_theme_id_); |
| 240 #endif | 240 #endif |
| 241 | 241 |
| 242 if (old_delegate) | 242 if (old_delegate) |
| 243 tab_contents->ReplaceInfoBar(old_delegate, new_delegate); | 243 tab_contents->ReplaceInfoBar(old_delegate, new_delegate); |
| 244 else | 244 else |
| 245 tab_contents->AddInfoBar(new_delegate); | 245 tab_contents->AddInfoBar(new_delegate); |
| 246 } | 246 } |
| OLD | NEW |