| Index: content/browser/devtools/protocol/system_info_handler.cc
|
| diff --git a/content/browser/devtools/protocol/system_info_handler.cc b/content/browser/devtools/protocol/system_info_handler.cc
|
| index 27877b0bd981f9fd9d43169fdc261953642d22e8..5a9d53ad1e90a64c76ef42a5462b150bea3f8545 100644
|
| --- a/content/browser/devtools/protocol/system_info_handler.cc
|
| +++ b/content/browser/devtools/protocol/system_info_handler.cc
|
| @@ -8,9 +8,12 @@
|
| #include <utility>
|
|
|
| #include "base/bind.h"
|
| +#include "base/command_line.h"
|
| #include "content/browser/gpu/compositor_util.h"
|
| #include "content/public/browser/gpu_data_manager.h"
|
| +#include "gpu/config/gpu_feature_type.h"
|
| #include "gpu/config/gpu_info.h"
|
| +#include "gpu/config/gpu_switches.h"
|
|
|
| namespace content {
|
| namespace devtools {
|
| @@ -149,7 +152,9 @@ void SystemInfoHandler::SetClient(scoped_ptr<Client> client) {
|
| Response SystemInfoHandler::GetInfo(DevToolsCommandId command_id) {
|
| std::string reason;
|
| if (!GpuDataManager::GetInstance()->GpuAccessAllowed(&reason) ||
|
| - GpuDataManager::GetInstance()->IsEssentialGpuInfoAvailable()) {
|
| + GpuDataManager::GetInstance()->IsEssentialGpuInfoAvailable() ||
|
| + base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kGpuTestingNoCompleteInfoCollection)) {
|
| // The GpuDataManager already has all of the information needed to make
|
| // GPU-based blacklisting decisions. Post a task to give it to the
|
| // client asynchronously.
|
|
|