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

Side by Side Diff: chrome/test/chromedriver/chrome_launcher.cc

Issue 2564973002: Add an infobar if a session is being controlled by an automated test. (Closed)
Patch Set: avoid changes to GlobalConfirmInfoBar Created 3 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 unified diff | Download patch
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include <fcntl.h> 55 #include <fcntl.h>
56 #include <sys/stat.h> 56 #include <sys/stat.h>
57 #include <sys/types.h> 57 #include <sys/types.h>
58 #elif defined(OS_WIN) 58 #elif defined(OS_WIN)
59 #include "chrome/test/chromedriver/keycode_text_conversion.h" 59 #include "chrome/test/chromedriver/keycode_text_conversion.h"
60 #endif 60 #endif
61 61
62 namespace { 62 namespace {
63 63
64 const char* const kCommonSwitches[] = { 64 const char* const kCommonSwitches[] = {
65 "disable-infobars",
66 "disable-popup-blocking", 65 "disable-popup-blocking",
66 "enable-chromedriver",
67 "ignore-certificate-errors", 67 "ignore-certificate-errors",
68 "metrics-recording-only", 68 "metrics-recording-only",
69 }; 69 };
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",
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 // Write empty "First Run" file, otherwise Chrome will wipe the default 879 // Write empty "First Run" file, otherwise Chrome will wipe the default
880 // profile that was written. 880 // profile that was written.
881 if (base::WriteFile( 881 if (base::WriteFile(
882 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) { 882 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) {
883 return Status(kUnknownError, "failed to write first run file"); 883 return Status(kUnknownError, "failed to write first run file");
884 } 884 }
885 return Status(kOk); 885 return Status(kOk);
886 } 886 }
887 887
888 } // namespace internal 888 } // namespace internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698