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

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

Issue 293363010: [chromedriver] Fix some minor errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « chrome/test/chromedriver/chrome/web_view_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 switches.SetSwitch("disable-sync"); 105 switches.SetSwitch("disable-sync");
106 switches.SetSwitch("no-first-run"); 106 switches.SetSwitch("no-first-run");
107 switches.SetSwitch("disable-background-networking"); 107 switches.SetSwitch("disable-background-networking");
108 switches.SetSwitch("disable-web-resources"); 108 switches.SetSwitch("disable-web-resources");
109 switches.SetSwitch("safebrowsing-disable-auto-update"); 109 switches.SetSwitch("safebrowsing-disable-auto-update");
110 switches.SetSwitch("safebrowsing-disable-download-protection"); 110 switches.SetSwitch("safebrowsing-disable-download-protection");
111 switches.SetSwitch("disable-client-side-phishing-detection"); 111 switches.SetSwitch("disable-client-side-phishing-detection");
112 switches.SetSwitch("disable-component-update"); 112 switches.SetSwitch("disable-component-update");
113 switches.SetSwitch("disable-default-apps"); 113 switches.SetSwitch("disable-default-apps");
114 switches.SetSwitch("enable-logging"); 114 switches.SetSwitch("enable-logging");
115 switches.SetSwitch("logging-level", "1"); 115 switches.SetSwitch("log-level", "1");
116 switches.SetSwitch("password-store", "basic"); 116 switches.SetSwitch("password-store", "basic");
117 switches.SetSwitch("use-mock-keychain"); 117 switches.SetSwitch("use-mock-keychain");
118 switches.SetSwitch("remote-debugging-port", base::IntToString(port)); 118 switches.SetSwitch("remote-debugging-port", base::IntToString(port));
119 119
120 for (std::set<std::string>::const_iterator iter = 120 for (std::set<std::string>::const_iterator iter =
121 capabilities.exclude_switches.begin(); 121 capabilities.exclude_switches.begin();
122 iter != capabilities.exclude_switches.end(); 122 iter != capabilities.exclude_switches.end();
123 ++iter) { 123 ++iter) {
124 switches.RemoveSwitch(*iter); 124 switches.RemoveSwitch(*iter);
125 } 125 }
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 // Write empty "First Run" file, otherwise Chrome will wipe the default 717 // Write empty "First Run" file, otherwise Chrome will wipe the default
718 // profile that was written. 718 // profile that was written.
719 if (base::WriteFile( 719 if (base::WriteFile(
720 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) { 720 user_data_dir.Append(chrome::kFirstRunSentinel), "", 0) != 0) {
721 return Status(kUnknownError, "failed to write first run file"); 721 return Status(kUnknownError, "failed to write first run file");
722 } 722 }
723 return Status(kOk); 723 return Status(kOk);
724 } 724 }
725 725
726 } // namespace internal 726 } // namespace internal
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/web_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698