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

Unified Diff: chrome/test/in_process_browser_test.cc

Issue 6596020: Reorganize CommandLine code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorganize CommandLine code. Created 9 years, 10 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
« base/command_line.h ('K') | « base/command_line.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/in_process_browser_test.cc
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index 45cb676e6b67ffae68714d2b3795c41f514f01c3..235c5b34420e05224cadbaa5b6ce767d786026e3 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -104,7 +104,7 @@ void InProcessBrowserTest::SetUp() {
// running in single process mode, we can't let one test's command-line
// changes (e.g. enabling DOM automation) affect other tests.
// TODO(phajdan.jr): This save/restore logic is unnecessary. Remove it.
- CommandLine* command_line = CommandLine::ForCurrentProcessMutable();
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
Paweł Hajdan Jr. 2011/02/28 11:11:41 nit: If you take a look at the TODO above, I think
msw 2011/02/28 19:42:03 Done. Is trybot coverage (including IN_PROC_BROWSE
Paweł Hajdan Jr. 2011/02/28 21:01:16 Trybots are sufficient IMO. Yeah, original_single_
msw 2011/02/28 23:44:47 Done.
original_command_line_.reset(new CommandLine(*command_line));
// Create a temporary user data directory if required.
@@ -216,7 +216,7 @@ void InProcessBrowserTest::PrepareTestCommandLine(
}
bool InProcessBrowserTest::CreateUserDataDirectory() {
- CommandLine* command_line = CommandLine::ForCurrentProcessMutable();
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
FilePath user_data_dir =
command_line->GetSwitchValuePath(switches::kUserDataDir);
if (user_data_dir.empty()) {
@@ -243,7 +243,7 @@ void InProcessBrowserTest::TearDown() {
BrowserView::SetShowState(-1);
#endif
- *CommandLine::ForCurrentProcessMutable() = *original_command_line_;
+ *CommandLine::ForCurrentProcess() = *original_command_line_;
RenderProcessHost::set_run_renderer_in_process(original_single_process_);
}
« base/command_line.h ('K') | « base/command_line.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698