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