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

Side by Side Diff: content/browser/browser_shutdown_profile_dumper.cc

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 years, 4 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
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/browser_shutdown_profile_dumper.h" 5 #include "content/browser/browser_shutdown_profile_dumper.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/debug/trace_event_impl.h" 10 #include "base/debug/trace_event_impl.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 base::WaitableEvent* flush_complete_event) { 68 base::WaitableEvent* flush_complete_event) {
69 base::debug::TraceLog::GetInstance()->SetDisabled(); 69 base::debug::TraceLog::GetInstance()->SetDisabled();
70 base::debug::TraceLog::GetInstance()->Flush( 70 base::debug::TraceLog::GetInstance()->Flush(
71 base::Bind(&BrowserShutdownProfileDumper::WriteTraceDataCollected, 71 base::Bind(&BrowserShutdownProfileDumper::WriteTraceDataCollected,
72 base::Unretained(this), 72 base::Unretained(this),
73 base::Unretained(flush_complete_event))); 73 base::Unretained(flush_complete_event)));
74 } 74 }
75 75
76 // static 76 // static
77 base::FilePath BrowserShutdownProfileDumper::GetShutdownProfileFileName() { 77 base::FilePath BrowserShutdownProfileDumper::GetShutdownProfileFileName() {
78 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 78 const base::CommandLine& command_line =
79 *base::CommandLine::ForCurrentProcess();
79 base::FilePath trace_file = 80 base::FilePath trace_file =
80 command_line.GetSwitchValuePath(switches::kTraceShutdownFile); 81 command_line.GetSwitchValuePath(switches::kTraceShutdownFile);
81 82
82 if (!trace_file.empty()) 83 if (!trace_file.empty())
83 return trace_file; 84 return trace_file;
84 85
85 // Default to saving the startup trace into the current dir. 86 // Default to saving the startup trace into the current dir.
86 return base::FilePath().AppendASCII("chrometrace.log"); 87 return base::FilePath().AppendASCII("chrometrace.log");
87 } 88 }
88 89
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 133 }
133 134
134 void BrowserShutdownProfileDumper::CloseFile() { 135 void BrowserShutdownProfileDumper::CloseFile() {
135 if (!dump_file_) 136 if (!dump_file_)
136 return; 137 return;
137 base::CloseFile(dump_file_); 138 base::CloseFile(dump_file_);
138 dump_file_ = NULL; 139 dump_file_ = NULL;
139 } 140 }
140 141
141 } // namespace content 142 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698