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

Side by Side Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 21150006: Introduce --cancel-first-run and reduce the strength of --no-first-run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add first_run::IsFirstRunSuppressed() Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome_frame/test/chrome_frame_test_utils.h" 5 #include "chrome_frame/test/chrome_frame_test_utils.h"
6 6
7 #include <atlapp.h> 7 #include <atlapp.h>
8 #include <atlmisc.h> 8 #include <atlmisc.h>
9 #include <iepmapi.h> 9 #include <iepmapi.h>
10 #include <sddl.h> 10 #include <sddl.h>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return process; 190 return process;
191 } 191 }
192 192
193 base::ProcessHandle LaunchChrome(const std::wstring& url, 193 base::ProcessHandle LaunchChrome(const std::wstring& url,
194 const base::FilePath& user_data_dir) { 194 const base::FilePath& user_data_dir) {
195 base::FilePath path; 195 base::FilePath path;
196 PathService::Get(base::DIR_MODULE, &path); 196 PathService::Get(base::DIR_MODULE, &path);
197 path = path.AppendASCII(kChromeImageName); 197 path = path.AppendASCII(kChromeImageName);
198 198
199 CommandLine cmd(path); 199 CommandLine cmd(path);
200 cmd.AppendSwitch(switches::kNoFirstRun); 200 cmd.AppendSwitch(switches::kSkipFirstRun);
201 if (!user_data_dir.empty()) 201 if (!user_data_dir.empty())
202 cmd.AppendSwitchPath(switches::kUserDataDir, user_data_dir); 202 cmd.AppendSwitchPath(switches::kUserDataDir, user_data_dir);
203 cmd.AppendArgNative(url); 203 cmd.AppendArgNative(url);
204 204
205 base::ProcessHandle process = NULL; 205 base::ProcessHandle process = NULL;
206 base::LaunchProcess(cmd, base::LaunchOptions(), &process); 206 base::LaunchProcess(cmd, base::LaunchOptions(), &process);
207 return process; 207 return process;
208 } 208 }
209 209
210 base::ProcessHandle LaunchIEOnVista(const std::wstring& url) { 210 base::ProcessHandle LaunchIEOnVista(const std::wstring& url) {
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 if (address.empty()) { 740 if (address.empty()) {
741 LOG(ERROR) << "Failed to find a non-loopback IP_V4 address. Tests will be " 741 LOG(ERROR) << "Failed to find a non-loopback IP_V4 address. Tests will be "
742 << "run over the loopback adapter, which may result in hangs."; 742 << "run over the loopback adapter, which may result in hangs.";
743 address.assign("127.0.0.1"); 743 address.assign("127.0.0.1");
744 } 744 }
745 745
746 return address; 746 return address;
747 } 747 }
748 748
749 } // namespace chrome_frame_test 749 } // namespace chrome_frame_test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698