Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 WebstorePrivateGetWebGLStatusFunction:: 762 WebstorePrivateGetWebGLStatusFunction::
763 ~WebstorePrivateGetWebGLStatusFunction() {} 763 ~WebstorePrivateGetWebGLStatusFunction() {}
764 764
765 ExtensionFunction::ResponseAction WebstorePrivateGetWebGLStatusFunction::Run() { 765 ExtensionFunction::ResponseAction WebstorePrivateGetWebGLStatusFunction::Run() {
766 feature_checker_->CheckGPUFeatureAvailability(); 766 feature_checker_->CheckGPUFeatureAvailability();
767 return RespondLater(); 767 return RespondLater();
768 } 768 }
769 769
770 void WebstorePrivateGetWebGLStatusFunction::OnFeatureCheck( 770 void WebstorePrivateGetWebGLStatusFunction::OnFeatureCheck(
771 bool feature_allowed) { 771 bool feature_allowed) {
772 Respond(ArgumentList(GetWebGLStatus::Results::Create( 772 Respond(ArgumentList(
773 GetWebGLStatus::Results::ParseWebgl_status( 773 GetWebGLStatus::Results::Create(api::webstore_private::ParseWebGlStatus(
774 feature_allowed ? "webgl_allowed" : "webgl_blocked")))); 774 feature_allowed ? "webgl_allowed" : "webgl_blocked"))));
775 } 775 }
776 776
777 WebstorePrivateGetIsLauncherEnabledFunction:: 777 WebstorePrivateGetIsLauncherEnabledFunction::
778 WebstorePrivateGetIsLauncherEnabledFunction() {} 778 WebstorePrivateGetIsLauncherEnabledFunction() {}
779 779
780 WebstorePrivateGetIsLauncherEnabledFunction:: 780 WebstorePrivateGetIsLauncherEnabledFunction::
781 ~WebstorePrivateGetIsLauncherEnabledFunction() {} 781 ~WebstorePrivateGetIsLauncherEnabledFunction() {}
782 782
783 ExtensionFunction::ResponseAction 783 ExtensionFunction::ResponseAction
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 WebstorePrivateGetEphemeralAppsEnabledFunction:: 869 WebstorePrivateGetEphemeralAppsEnabledFunction::
870 ~WebstorePrivateGetEphemeralAppsEnabledFunction() {} 870 ~WebstorePrivateGetEphemeralAppsEnabledFunction() {}
871 871
872 ExtensionFunction::ResponseAction 872 ExtensionFunction::ResponseAction
873 WebstorePrivateGetEphemeralAppsEnabledFunction::Run() { 873 WebstorePrivateGetEphemeralAppsEnabledFunction::Run() {
874 return RespondNow(ArgumentList(GetEphemeralAppsEnabled::Results::Create( 874 return RespondNow(ArgumentList(GetEphemeralAppsEnabled::Results::Create(
875 EphemeralAppLauncher::IsFeatureEnabled()))); 875 EphemeralAppLauncher::IsFeatureEnabled())));
876 } 876 }
877 877
878 } // namespace extensions 878 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698