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/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_util.h" | |
15 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" |
16 #include "base/files/scoped_file.h" | 16 #include "base/files/scoped_file.h" |
17 #include "base/format_macros.h" | 17 #include "base/format_macros.h" |
18 #include "base/json/json_reader.h" | 18 #include "base/json/json_reader.h" |
19 #include "base/json/json_writer.h" | 19 #include "base/json/json_writer.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/process/kill.h" | 21 #include "base/process/kill.h" |
22 #include "base/process/launch.h" | 22 #include "base/process/launch.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 // Write empty "First Run" file, otherwise Chrome will wipe the default | 788 // Write empty "First Run" file, otherwise Chrome will wipe the default |
789 // profile that was written. | 789 // profile that was written. |
790 if (base::WriteFile( | 790 if (base::WriteFile( |
791 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) { | 791 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) { |
792 return Status(kUnknownError, "failed to write first run file"); | 792 return Status(kUnknownError, "failed to write first run file"); |
793 } | 793 } |
794 return Status(kOk); | 794 return Status(kOk); |
795 } | 795 } |
796 | 796 |
797 } // namespace internal | 797 } // namespace internal |
OLD | NEW |