OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/test/chromedriver/chrome_launcher.h" | 5 #include "chrome/test/chromedriver/chrome_launcher.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/format_macros.h" | 15 #include "base/format_macros.h" |
16 #include "base/json/json_reader.h" | 16 #include "base/json/json_reader.h" |
17 #include "base/json/json_writer.h" | 17 #include "base/json/json_writer.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/process.h" | 19 #include "base/process/kill.h" |
20 #include "base/process_util.h" | 20 #include "base/process/launch.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
24 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
25 #include "base/threading/platform_thread.h" | 25 #include "base/threading/platform_thread.h" |
26 #include "base/time/time.h" | 26 #include "base/time/time.h" |
27 #include "base/values.h" | 27 #include "base/values.h" |
28 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" | 28 #include "chrome/test/chromedriver/chrome/chrome_android_impl.h" |
29 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" | 29 #include "chrome/test/chromedriver/chrome/chrome_desktop_impl.h" |
30 #include "chrome/test/chromedriver/chrome/chrome_finder.h" | 30 #include "chrome/test/chromedriver/chrome/chrome_finder.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // Write empty "First Run" file, otherwise Chrome will wipe the default | 411 // Write empty "First Run" file, otherwise Chrome will wipe the default |
412 // profile that was written. | 412 // profile that was written. |
413 if (file_util::WriteFile( | 413 if (file_util::WriteFile( |
414 user_data_dir.AppendASCII("First Run"), "", 0) != 0) { | 414 user_data_dir.AppendASCII("First Run"), "", 0) != 0) { |
415 return Status(kUnknownError, "failed to write first run file"); | 415 return Status(kUnknownError, "failed to write first run file"); |
416 } | 416 } |
417 return Status(kOk); | 417 return Status(kOk); |
418 } | 418 } |
419 | 419 |
420 } // namespace internal | 420 } // namespace internal |
OLD | NEW |