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

Unified Diff: chrome/browser/web_resource/gpu_blacklist_updater.cc

Issue 8383008: Add a command-line switch --skip-gpu-data-loading. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/test/base/test_launcher_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_resource/gpu_blacklist_updater.cc
===================================================================
--- chrome/browser/web_resource/gpu_blacklist_updater.cc (revision 107391)
+++ chrome/browser/web_resource/gpu_blacklist_updater.cc (working copy)
@@ -18,6 +18,7 @@
#include "content/browser/browser_thread.h"
#include "content/browser/gpu/gpu_blacklist.h"
#include "content/browser/gpu/gpu_data_manager.h"
+#include "content/public/common/content_switches.h"
#include "grit/browser_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/gl/gl_implementation.h"
@@ -84,16 +85,15 @@
// graphics information. This has to happen on FILE thread.
GpuDataManager::GetInstance();
+ // Cache the chrome version string. This has to happen on FILE thread
+ // because of chrome::VersionInfo::GetChannel().
+ GetChromeVersionString();
+
// Skip auto updates in tests.
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- if ((command_line.GetSwitchValueASCII(switches::kUseGL) ==
- gfx::kGLImplementationOSMesaName))
+ if (command_line.HasSwitch(switches::kSkipGpuDataLoading))
return;
- // Cache the chrome version string. This has to happen on FILE thread
- // because of chrome::VersionInfo::GetChannel().
- GetChromeVersionString();
-
// Post GpuBlacklistUpdate task on UI thread. This has to happen
// after GpuDataManager is initialized, otherwise it might be
// initialzed on UI thread.
« no previous file with comments | « no previous file | chrome/test/base/test_launcher_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698