| 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/pref_names.h" | 9 #include "apps/pref_names.h" |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/ui/browser_window.h" | 32 #include "chrome/browser/ui/browser_window.h" |
| 33 #include "chrome/browser/ui/extensions/application_launch.h" | 33 #include "chrome/browser/ui/extensions/application_launch.h" |
| 34 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 34 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
| 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 36 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 36 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 37 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 37 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 38 #include "chrome/common/chrome_notification_types.h" | 38 #include "chrome/common/chrome_notification_types.h" |
| 39 #include "chrome/common/extensions/extension.h" | 39 #include "chrome/common/extensions/extension.h" |
| 40 #include "chrome/common/extensions/extension_constants.h" | 40 #include "chrome/common/extensions/extension_constants.h" |
| 41 #include "chrome/common/extensions/extension_icon_set.h" | 41 #include "chrome/common/extensions/extension_icon_set.h" |
| 42 #include "chrome/common/favicon_types.h" |
| 42 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
| 43 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
| 44 #include "chrome/common/web_application_info.h" | 45 #include "chrome/common/web_application_info.h" |
| 45 #include "components/user_prefs/pref_registry_syncable.h" | 46 #include "components/user_prefs/pref_registry_syncable.h" |
| 46 #include "content/public/browser/notification_service.h" | 47 #include "content/public/browser/notification_service.h" |
| 47 #include "content/public/browser/web_ui.h" | 48 #include "content/public/browser/web_ui.h" |
| 48 #include "content/public/common/favicon_url.h" | 49 #include "content/public/common/favicon_url.h" |
| 49 #include "googleurl/src/gurl.h" | 50 #include "googleurl/src/gurl.h" |
| 50 #include "grit/browser_resources.h" | 51 #include "grit/browser_resources.h" |
| 51 #include "grit/generated_resources.h" | 52 #include "grit/generated_resources.h" |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 ExtensionUninstallDialog* AppLauncherHandler::GetExtensionUninstallDialog() { | 840 ExtensionUninstallDialog* AppLauncherHandler::GetExtensionUninstallDialog() { |
| 840 if (!extension_uninstall_dialog_.get()) { | 841 if (!extension_uninstall_dialog_.get()) { |
| 841 Browser* browser = chrome::FindBrowserWithWebContents( | 842 Browser* browser = chrome::FindBrowserWithWebContents( |
| 842 web_ui()->GetWebContents()); | 843 web_ui()->GetWebContents()); |
| 843 extension_uninstall_dialog_.reset( | 844 extension_uninstall_dialog_.reset( |
| 844 ExtensionUninstallDialog::Create(extension_service_->profile(), | 845 ExtensionUninstallDialog::Create(extension_service_->profile(), |
| 845 browser, this)); | 846 browser, this)); |
| 846 } | 847 } |
| 847 return extension_uninstall_dialog_.get(); | 848 return extension_uninstall_dialog_.get(); |
| 848 } | 849 } |
| OLD | NEW |