| 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/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 WebstorePrivateGetWebGLStatusFunction:: | 652 WebstorePrivateGetWebGLStatusFunction:: |
| 653 ~WebstorePrivateGetWebGLStatusFunction() {} | 653 ~WebstorePrivateGetWebGLStatusFunction() {} |
| 654 | 654 |
| 655 ExtensionFunction::ResponseAction WebstorePrivateGetWebGLStatusFunction::Run() { | 655 ExtensionFunction::ResponseAction WebstorePrivateGetWebGLStatusFunction::Run() { |
| 656 feature_checker_->CheckGPUFeatureAvailability(); | 656 feature_checker_->CheckGPUFeatureAvailability(); |
| 657 return RespondLater(); | 657 return RespondLater(); |
| 658 } | 658 } |
| 659 | 659 |
| 660 void WebstorePrivateGetWebGLStatusFunction::OnFeatureCheck( | 660 void WebstorePrivateGetWebGLStatusFunction::OnFeatureCheck( |
| 661 bool feature_allowed) { | 661 bool feature_allowed) { |
| 662 Respond(ArgumentList(GetWebGLStatus::Results::Create( | 662 Respond(ArgumentList( |
| 663 GetWebGLStatus::Results::ParseWebgl_status( | 663 GetWebGLStatus::Results::Create(api::webstore_private::ParseWebGlStatus( |
| 664 feature_allowed ? "webgl_allowed" : "webgl_blocked")))); | 664 feature_allowed ? "webgl_allowed" : "webgl_blocked")))); |
| 665 } | 665 } |
| 666 | 666 |
| 667 WebstorePrivateGetIsLauncherEnabledFunction:: | 667 WebstorePrivateGetIsLauncherEnabledFunction:: |
| 668 WebstorePrivateGetIsLauncherEnabledFunction() {} | 668 WebstorePrivateGetIsLauncherEnabledFunction() {} |
| 669 | 669 |
| 670 WebstorePrivateGetIsLauncherEnabledFunction:: | 670 WebstorePrivateGetIsLauncherEnabledFunction:: |
| 671 ~WebstorePrivateGetIsLauncherEnabledFunction() {} | 671 ~WebstorePrivateGetIsLauncherEnabledFunction() {} |
| 672 | 672 |
| 673 ExtensionFunction::ResponseAction | 673 ExtensionFunction::ResponseAction |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 WebstorePrivateGetEphemeralAppsEnabledFunction:: | 759 WebstorePrivateGetEphemeralAppsEnabledFunction:: |
| 760 ~WebstorePrivateGetEphemeralAppsEnabledFunction() {} | 760 ~WebstorePrivateGetEphemeralAppsEnabledFunction() {} |
| 761 | 761 |
| 762 ExtensionFunction::ResponseAction | 762 ExtensionFunction::ResponseAction |
| 763 WebstorePrivateGetEphemeralAppsEnabledFunction::Run() { | 763 WebstorePrivateGetEphemeralAppsEnabledFunction::Run() { |
| 764 return RespondNow(ArgumentList(GetEphemeralAppsEnabled::Results::Create( | 764 return RespondNow(ArgumentList(GetEphemeralAppsEnabled::Results::Create( |
| 765 EphemeralAppLauncher::IsFeatureEnabled()))); | 765 EphemeralAppLauncher::IsFeatureEnabled()))); |
| 766 } | 766 } |
| 767 | 767 |
| 768 } // namespace extensions | 768 } // namespace extensions |
| OLD | NEW |