| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 const char* const kDesktopSwitches[] = { | 71 const char* const kDesktopSwitches[] = { |
| 72 "disable-hang-monitor", | 72 "disable-hang-monitor", |
| 73 "disable-prompt-on-repost", | 73 "disable-prompt-on-repost", |
| 74 "disable-sync", | 74 "disable-sync", |
| 75 "no-first-run", | 75 "no-first-run", |
| 76 "disable-background-networking", | 76 "disable-background-networking", |
| 77 "disable-web-resources", | 77 "disable-web-resources", |
| 78 "safebrowsing-disable-auto-update", | 78 "safebrowsing-disable-auto-update", |
| 79 "disable-client-side-phishing-detection", | 79 "disable-client-side-phishing-detection", |
| 80 "disable-component-update", | |
| 81 "disable-default-apps", | 80 "disable-default-apps", |
| 82 "enable-logging", | 81 "enable-logging", |
| 83 "log-level=0", | 82 "log-level=0", |
| 84 "password-store=basic", | 83 "password-store=basic", |
| 85 "use-mock-keychain", | 84 "use-mock-keychain", |
| 86 "test-type=webdriver", | 85 "test-type=webdriver", |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 const char* const kAndroidSwitches[] = { | 88 const char* const kAndroidSwitches[] = { |
| 90 "disable-fre", | 89 "disable-fre", |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 // Write empty "First Run" file, otherwise Chrome will wipe the default | 875 // Write empty "First Run" file, otherwise Chrome will wipe the default |
| 877 // profile that was written. | 876 // profile that was written. |
| 878 if (base::WriteFile( | 877 if (base::WriteFile( |
| 879 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) { | 878 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) { |
| 880 return Status(kUnknownError, "failed to write first run file"); | 879 return Status(kUnknownError, "failed to write first run file"); |
| 881 } | 880 } |
| 882 return Status(kOk); | 881 return Status(kOk); |
| 883 } | 882 } |
| 884 | 883 |
| 885 } // namespace internal | 884 } // namespace internal |
| OLD | NEW |