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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 2666243002: Move GPUFeatureChecker to content layer (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
index 8c19e597a32dbdcd500b44e9cc8bf98baea580bd..040acec91f26821e15113b5699ba2db1cfc657a2 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
@@ -22,7 +22,6 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/install_tracker.h"
-#include "chrome/browser/gpu/gpu_feature_checker.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/ui/app_list/app_list_service.h"
@@ -32,6 +31,7 @@
#include "components/crx_file/id_util.h"
#include "components/prefs/pref_service.h"
#include "components/signin/core/browser/signin_manager.h"
+#include "content/public/browser/gpu_feature_checker.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_registry.h"
@@ -544,17 +544,16 @@ ExtensionFunction::ResponseAction WebstorePrivateSetStoreLoginFunction::Run() {
}
WebstorePrivateGetWebGLStatusFunction::WebstorePrivateGetWebGLStatusFunction()
- : feature_checker_(new GPUFeatureChecker(
- gpu::GPU_FEATURE_TYPE_WEBGL,
- base::Bind(&WebstorePrivateGetWebGLStatusFunction::OnFeatureCheck,
- base::Unretained(this)))) {
-}
+ : feature_checker_(content::GpuFeatureChecker::Create(
+ gpu::GPU_FEATURE_TYPE_WEBGL,
+ base::Bind(&WebstorePrivateGetWebGLStatusFunction::OnFeatureCheck,
+ base::Unretained(this)))) {}
WebstorePrivateGetWebGLStatusFunction::
~WebstorePrivateGetWebGLStatusFunction() {}
ExtensionFunction::ResponseAction WebstorePrivateGetWebGLStatusFunction::Run() {
- feature_checker_->CheckGPUFeatureAvailability();
+ feature_checker_->CheckGpuFeatureAvailability();
return RespondLater();
}

Powered by Google App Engine
This is Rietveld 408576698