| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_disabled_ui.h" | 5 #include "chrome/browser/extensions/extension_disabled_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/ui/global_error_service.h" | 23 #include "chrome/browser/ui/global_error_service.h" |
| 24 #include "chrome/browser/ui/global_error_service_factory.h" | 24 #include "chrome/browser/ui/global_error_service_factory.h" |
| 25 #include "chrome/common/chrome_notification_types.h" | 25 #include "chrome/common/chrome_notification_types.h" |
| 26 #include "chrome/common/extensions/extension.h" | 26 #include "chrome/common/extensions/extension.h" |
| 27 #include "content/public/browser/notification_details.h" | 27 #include "content/public/browser/notification_details.h" |
| 28 #include "content/public/browser/notification_observer.h" | 28 #include "content/public/browser/notification_observer.h" |
| 29 #include "content/public/browser/notification_registrar.h" | 29 #include "content/public/browser/notification_registrar.h" |
| 30 #include "content/public/browser/notification_source.h" | 30 #include "content/public/browser/notification_source.h" |
| 31 #include "grit/chromium_strings.h" | 31 #include "grit/chromium_strings.h" |
| 32 #include "grit/generated_resources.h" | 32 #include "grit/generated_resources.h" |
| 33 #include "grit/theme_resources.h" | 33 #include "grit/theme_resources_standard.h" |
| 34 #include "ui/base/l10n/l10n_util.h" | 34 #include "ui/base/l10n/l10n_util.h" |
| 35 | 35 |
| 36 using extensions::Extension; | 36 using extensions::Extension; |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 static base::LazyInstance< | 40 static base::LazyInstance< |
| 41 std::bitset<IDC_EXTENSION_DISABLED_LAST - | 41 std::bitset<IDC_EXTENSION_DISABLED_LAST - |
| 42 IDC_EXTENSION_DISABLED_FIRST + 1> > | 42 IDC_EXTENSION_DISABLED_FIRST + 1> > |
| 43 menu_command_ids = LAZY_INSTANCE_INITIALIZER; | 43 menu_command_ids = LAZY_INSTANCE_INITIALIZER; |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 AddGlobalError(new ExtensionDisabledGlobalError(service, extension)); | 317 AddGlobalError(new ExtensionDisabledGlobalError(service, extension)); |
| 318 } | 318 } |
| 319 | 319 |
| 320 void ShowExtensionDisabledDialog(ExtensionService* service, Browser* browser, | 320 void ShowExtensionDisabledDialog(ExtensionService* service, Browser* browser, |
| 321 const Extension* extension) { | 321 const Extension* extension) { |
| 322 // This object manages its own lifetime. | 322 // This object manages its own lifetime. |
| 323 new ExtensionDisabledDialogDelegate(browser, service, extension); | 323 new ExtensionDisabledDialogDelegate(browser, service, extension); |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace extensions | 326 } // namespace extensions |
| OLD | NEW |