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

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

Issue 15385003: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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 "apps/app_launcher.h" 7 #include "apps/app_launcher.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &login)); 606 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &login));
607 ExtensionService* service = 607 ExtensionService* service =
608 extensions::ExtensionSystem::Get(profile_)->extension_service(); 608 extensions::ExtensionSystem::Get(profile_)->extension_service();
609 ExtensionPrefs* prefs = service->extension_prefs(); 609 ExtensionPrefs* prefs = service->extension_prefs();
610 prefs->SetWebStoreLogin(login); 610 prefs->SetWebStoreLogin(login);
611 return true; 611 return true;
612 } 612 }
613 613
614 GetWebGLStatusFunction::GetWebGLStatusFunction() { 614 GetWebGLStatusFunction::GetWebGLStatusFunction() {
615 feature_checker_ = new GPUFeatureChecker( 615 feature_checker_ = new GPUFeatureChecker(
616 content::GPU_FEATURE_TYPE_WEBGL, 616 gpu::GPU_FEATURE_TYPE_WEBGL,
617 base::Bind(&GetWebGLStatusFunction::OnFeatureCheck, 617 base::Bind(&GetWebGLStatusFunction::OnFeatureCheck,
618 base::Unretained(this))); 618 base::Unretained(this)));
619 } 619 }
620 620
621 GetWebGLStatusFunction::~GetWebGLStatusFunction() {} 621 GetWebGLStatusFunction::~GetWebGLStatusFunction() {}
622 622
623 void GetWebGLStatusFunction::CreateResult(bool webgl_allowed) { 623 void GetWebGLStatusFunction::CreateResult(bool webgl_allowed) {
624 SetResult(Value::CreateStringValue( 624 SetResult(Value::CreateStringValue(
625 webgl_allowed ? "webgl_allowed" : "webgl_blocked")); 625 webgl_allowed ? "webgl_allowed" : "webgl_blocked"));
626 } 626 }
(...skipping 13 matching lines...) Expand all
640 &GetIsLauncherEnabledFunction::OnIsLauncherCheckCompleted, this)); 640 &GetIsLauncherEnabledFunction::OnIsLauncherCheckCompleted, this));
641 return true; 641 return true;
642 } 642 }
643 643
644 void GetIsLauncherEnabledFunction::OnIsLauncherCheckCompleted(bool is_enabled) { 644 void GetIsLauncherEnabledFunction::OnIsLauncherCheckCompleted(bool is_enabled) {
645 SetResult(Value::CreateBooleanValue(is_enabled)); 645 SetResult(Value::CreateBooleanValue(is_enabled));
646 SendResponse(true); 646 SendResponse(true);
647 } 647 }
648 648
649 } // namespace extensions 649 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698