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

Unified Diff: content/shell/browser/webkit_test_controller.cc

Issue 803813003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: content/shell/browser/webkit_test_controller.cc
diff --git a/content/shell/browser/webkit_test_controller.cc b/content/shell/browser/webkit_test_controller.cc
index f058a3e3dcda53d58f19ef99dfe82aa68bf7a3f8..3712d32fe4759afd069aac557f05fea6c990e084 100644
--- a/content/shell/browser/webkit_test_controller.cc
+++ b/content/shell/browser/webkit_test_controller.cc
@@ -202,21 +202,23 @@ WebKitTestController* WebKitTestController::Get() {
WebKitTestController::WebKitTestController()
: main_window_(NULL),
test_phase_(BETWEEN_TESTS),
- is_leak_detection_enabled_(CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableLeakDetection)),
+ is_leak_detection_enabled_(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableLeakDetection)),
crash_when_leak_found_(false) {
CHECK(!instance_);
instance_ = this;
if (is_leak_detection_enabled_) {
std::string switchValue =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kEnableLeakDetection);
crash_when_leak_found_ = switchValue == switches::kCrashOnFailure;
}
printer_.reset(new WebKitTestResultPrinter(&std::cout, &std::cerr));
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEncodeBinary))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEncodeBinary))
printer_->set_encode_binary_data(true);
registrar_.Add(this,
NOTIFICATION_RENDERER_PROCESS_CREATED,
@@ -335,7 +337,7 @@ void WebKitTestController::OverrideWebkitPrefs(WebPreferences* prefs) {
} else {
ApplyLayoutTestDefaultPreferences(prefs);
if (is_compositing_test_) {
- CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess();
if (!command_line.HasSwitch(switches::kDisableGpu))
prefs->accelerated_2d_canvas_enabled = true;
prefs->mock_scrollbars_enabled = true;
@@ -496,8 +498,9 @@ void WebKitTestController::SendTestConfiguration() {
params.temp_path = temp_path_;
params.test_url = test_url_;
params.enable_pixel_dumping = enable_pixel_dumping_;
- params.allow_external_pages = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAllowExternalPages);
+ params.allow_external_pages =
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAllowExternalPages);
params.expected_pixel_hash = expected_pixel_hash_;
params.initial_size = initial_size_;
render_view_host->Send(new ShellViewMsg_SetTestConfiguration(
@@ -530,8 +533,8 @@ void WebKitTestController::OnImageDump(
std::vector<unsigned char> png;
bool discard_transparency = true;
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableOverlayFullscreenVideo))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableOverlayFullscreenVideo))
discard_transparency = false;
std::vector<gfx::PNGCodec::Comment> comments;
« no previous file with comments | « content/shell/browser/shell_web_contents_view_delegate_win.cc ('k') | content/shell/common/shell_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698