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 "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 service->Notify(NotificationType::EXTENSION_WILL_SHOW_CONFIRM_DIALOG, | 224 service->Notify(NotificationType::EXTENSION_WILL_SHOW_CONFIRM_DIALOG, |
225 Source<ExtensionInstallUI>(this), | 225 Source<ExtensionInstallUI>(this), |
226 NotificationService::NoDetails()); | 226 NotificationService::NoDetails()); |
227 | 227 |
228 std::vector<string16> warnings = extension_->GetPermissionMessages(); | 228 std::vector<string16> warnings = extension_->GetPermissionMessages(); |
229 ShowExtensionInstallDialog2( | 229 ShowExtensionInstallDialog2( |
230 profile_, delegate_, extension_, &icon_, warnings, prompt_type_); | 230 profile_, delegate_, extension_, &icon_, warnings, prompt_type_); |
231 break; | 231 break; |
232 } | 232 } |
233 case UNINSTALL_PROMPT: { | 233 case UNINSTALL_PROMPT: { |
234 ShowExtensionInstallDialog( | 234 ShowGenericExtensionDialog( |
235 profile_, delegate_, extension_, &icon_, UNINSTALL_PROMPT); | 235 profile_, delegate_, extension_, &icon_, UNINSTALL_PROMPT); |
236 break; | 236 break; |
237 } | 237 } |
238 default: | 238 default: |
239 NOTREACHED() << "Unknown message"; | 239 NOTREACHED() << "Unknown message"; |
240 break; | 240 break; |
241 } | 241 } |
242 } | 242 } |
243 | 243 |
244 void ExtensionInstallUI::ShowThemeInfoBar(const std::string& previous_theme_id, | 244 void ExtensionInstallUI::ShowThemeInfoBar(const std::string& previous_theme_id, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 const std::string& previous_theme_id, | 303 const std::string& previous_theme_id, |
304 bool previous_use_system_theme) { | 304 bool previous_use_system_theme) { |
305 #if defined(TOOLKIT_GTK) | 305 #if defined(TOOLKIT_GTK) |
306 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 306 return new GtkThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
307 previous_theme_id, previous_use_system_theme); | 307 previous_theme_id, previous_use_system_theme); |
308 #else | 308 #else |
309 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, | 309 return new ThemeInstalledInfoBarDelegate(tab_contents, new_theme, |
310 previous_theme_id); | 310 previous_theme_id); |
311 #endif | 311 #endif |
312 } | 312 } |
OLD | NEW |