| Index: chrome/app/chrome_main.cc
|
| diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
|
| index 80cd0fb2f8944215f40ee84c89adb23b886750cc..91c6161c1abb5e0a3dbf1dd869ce6664e22f0cad 100644
|
| --- a/chrome/app/chrome_main.cc
|
| +++ b/chrome/app/chrome_main.cc
|
| @@ -7,9 +7,12 @@
|
| #include "content/public/app/content_main.h"
|
|
|
| #if defined(OS_WIN)
|
| +#include "base/command_line.h"
|
| #include "base/debug/dump_without_crashing.h"
|
| #include "base/win/win_util.h"
|
| #include "chrome/common/chrome_constants.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +#include "gpu/config/gpu_info_collector.h"
|
|
|
| #define DLLEXPORT __declspec(dllexport)
|
|
|
| @@ -49,6 +52,11 @@ int ChromeMain(int argc, const char** argv) {
|
| ::GetProcAddress(::GetModuleHandle(chrome::kBrowserProcessExecutableName),
|
| "DumpProcessWithoutCrash"));
|
| base::debug::SetDumpWithoutCrashingFunction(DumpProcess);
|
| +
|
| + if (CommandLine::InitializedForCurrentProcess()) {
|
| + gpu::SetShouldFallbackToWarp(
|
| + CommandLine::ForCurrentProcess()->HasSwitch(switches::kViewerConnect));
|
| + }
|
| #else
|
| params.argc = argc;
|
| params.argv = argv;
|
|
|