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/ui/webui/ntp/app_launcher_handler.h" | 5 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "apps/metrics_names.h" | 9 #include "apps/metrics_names.h" |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "extensions/browser/extension_prefs.h" | 51 #include "extensions/browser/extension_prefs.h" |
52 #include "extensions/browser/extension_registry.h" | 52 #include "extensions/browser/extension_registry.h" |
53 #include "extensions/browser/extension_system.h" | 53 #include "extensions/browser/extension_system.h" |
54 #include "extensions/browser/management_policy.h" | 54 #include "extensions/browser/management_policy.h" |
55 #include "extensions/browser/pref_names.h" | 55 #include "extensions/browser/pref_names.h" |
56 #include "extensions/browser/uninstall_reason.h" | 56 #include "extensions/browser/uninstall_reason.h" |
57 #include "extensions/common/constants.h" | 57 #include "extensions/common/constants.h" |
58 #include "extensions/common/extension.h" | 58 #include "extensions/common/extension.h" |
59 #include "extensions/common/extension_icon_set.h" | 59 #include "extensions/common/extension_icon_set.h" |
60 #include "extensions/common/extension_set.h" | 60 #include "extensions/common/extension_set.h" |
61 #include "grit/browser_resources.h" | |
62 #include "ui/base/l10n/l10n_util.h" | 61 #include "ui/base/l10n/l10n_util.h" |
63 #include "ui/base/webui/web_ui_util.h" | 62 #include "ui/base/webui/web_ui_util.h" |
64 #include "url/gurl.h" | 63 #include "url/gurl.h" |
65 | 64 |
66 using content::WebContents; | 65 using content::WebContents; |
67 using extensions::AppSorting; | 66 using extensions::AppSorting; |
68 using extensions::CrxInstaller; | 67 using extensions::CrxInstaller; |
69 using extensions::Extension; | 68 using extensions::Extension; |
70 using extensions::ExtensionPrefs; | 69 using extensions::ExtensionPrefs; |
71 using extensions::ExtensionRegistry; | 70 using extensions::ExtensionRegistry; |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 Browser* browser = chrome::FindBrowserWithWebContents( | 841 Browser* browser = chrome::FindBrowserWithWebContents( |
843 web_ui()->GetWebContents()); | 842 web_ui()->GetWebContents()); |
844 extension_uninstall_dialog_.reset( | 843 extension_uninstall_dialog_.reset( |
845 extensions::ExtensionUninstallDialog::Create( | 844 extensions::ExtensionUninstallDialog::Create( |
846 extension_service_->profile(), | 845 extension_service_->profile(), |
847 browser->window()->GetNativeWindow(), | 846 browser->window()->GetNativeWindow(), |
848 this)); | 847 this)); |
849 } | 848 } |
850 return extension_uninstall_dialog_.get(); | 849 return extension_uninstall_dialog_.get(); |
851 } | 850 } |
OLD | NEW |