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 <bitset> |
7 #include <string> | 8 #include <string> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
14 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/app/chrome_command_ids.h" | 17 #include "chrome/app/chrome_command_ids.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 void ShowExtensionDisabledDialog(ExtensionService* service, | 368 void ShowExtensionDisabledDialog(ExtensionService* service, |
368 content::WebContents* web_contents, | 369 content::WebContents* web_contents, |
369 const Extension* extension) { | 370 const Extension* extension) { |
370 scoped_ptr<ExtensionInstallPrompt> install_ui( | 371 scoped_ptr<ExtensionInstallPrompt> install_ui( |
371 new ExtensionInstallPrompt(web_contents)); | 372 new ExtensionInstallPrompt(web_contents)); |
372 // This object manages its own lifetime. | 373 // This object manages its own lifetime. |
373 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); | 374 new ExtensionDisabledDialogDelegate(service, install_ui.Pass(), extension); |
374 } | 375 } |
375 | 376 |
376 } // namespace extensions | 377 } // namespace extensions |
OLD | NEW |