| 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/api/webstore_private/webstore_private_api.h" | 5 #include "chrome/browser/extensions/api/webstore_private/webstore_private_api.h" |
| 6 | 6 |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "chrome/browser/ui/app_list/app_list_service.h" | 31 #include "chrome/browser/ui/app_list/app_list_service.h" |
| 32 #include "chrome/browser/ui/app_list/app_list_util.h" | 32 #include "chrome/browser/ui/app_list/app_list_util.h" |
| 33 #include "chrome/browser/ui/browser.h" | 33 #include "chrome/browser/ui/browser.h" |
| 34 #include "chrome/common/extensions/extension_constants.h" | 34 #include "chrome/common/extensions/extension_constants.h" |
| 35 #include "chrome/common/pref_names.h" | 35 #include "chrome/common/pref_names.h" |
| 36 #include "components/crx_file/id_util.h" | 36 #include "components/crx_file/id_util.h" |
| 37 #include "content/public/browser/gpu_data_manager.h" | 37 #include "content/public/browser/gpu_data_manager.h" |
| 38 #include "content/public/browser/notification_details.h" | 38 #include "content/public/browser/notification_details.h" |
| 39 #include "content/public/browser/notification_source.h" | 39 #include "content/public/browser/notification_source.h" |
| 40 #include "content/public/browser/web_contents.h" | 40 #include "content/public/browser/web_contents.h" |
| 41 #include "content/public/common/page_transition_types.h" | |
| 42 #include "content/public/common/referrer.h" | |
| 43 #include "extensions/browser/extension_function_dispatcher.h" | 41 #include "extensions/browser/extension_function_dispatcher.h" |
| 44 #include "extensions/browser/extension_prefs.h" | 42 #include "extensions/browser/extension_prefs.h" |
| 45 #include "extensions/browser/extension_registry.h" | 43 #include "extensions/browser/extension_registry.h" |
| 46 #include "extensions/browser/extension_system.h" | 44 #include "extensions/browser/extension_system.h" |
| 47 #include "extensions/browser/extension_util.h" | 45 #include "extensions/browser/extension_util.h" |
| 48 #include "extensions/common/error_utils.h" | 46 #include "extensions/common/error_utils.h" |
| 49 #include "extensions/common/extension.h" | 47 #include "extensions/common/extension.h" |
| 50 #include "google_apis/gaia/google_service_auth_error.h" | |
| 51 #include "ui/base/l10n/l10n_util.h" | 48 #include "ui/base/l10n/l10n_util.h" |
| 52 #include "url/gurl.h" | |
| 53 | 49 |
| 54 using content::GpuDataManager; | 50 using content::GpuDataManager; |
| 55 | 51 |
| 56 namespace extensions { | 52 namespace extensions { |
| 57 | 53 |
| 58 namespace BeginInstallWithManifest3 = | 54 namespace BeginInstallWithManifest3 = |
| 59 api::webstore_private::BeginInstallWithManifest3; | 55 api::webstore_private::BeginInstallWithManifest3; |
| 60 namespace GetEphemeralAppsEnabled = | 56 namespace GetEphemeralAppsEnabled = |
| 61 api::webstore_private::GetEphemeralAppsEnabled; | 57 api::webstore_private::GetEphemeralAppsEnabled; |
| 62 namespace CompleteInstall = api::webstore_private::CompleteInstall; | 58 namespace CompleteInstall = api::webstore_private::CompleteInstall; |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 WebstorePrivateGetEphemeralAppsEnabledFunction:: | 752 WebstorePrivateGetEphemeralAppsEnabledFunction:: |
| 757 ~WebstorePrivateGetEphemeralAppsEnabledFunction() {} | 753 ~WebstorePrivateGetEphemeralAppsEnabledFunction() {} |
| 758 | 754 |
| 759 bool WebstorePrivateGetEphemeralAppsEnabledFunction::RunSync() { | 755 bool WebstorePrivateGetEphemeralAppsEnabledFunction::RunSync() { |
| 760 results_ = GetEphemeralAppsEnabled::Results::Create( | 756 results_ = GetEphemeralAppsEnabled::Results::Create( |
| 761 EphemeralAppLauncher::IsFeatureEnabled()); | 757 EphemeralAppLauncher::IsFeatureEnabled()); |
| 762 return true; | 758 return true; |
| 763 } | 759 } |
| 764 | 760 |
| 765 } // namespace extensions | 761 } // namespace extensions |
| OLD | NEW |