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

Unified Diff: chrome/test/base/chrome_process_util.cc

Issue 321913002: Removed un-used commandline switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/base/test_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_process_util.cc
diff --git a/chrome/test/base/chrome_process_util.cc b/chrome/test/base/chrome_process_util.cc
index 0d08db0edb48171052184bc230477d7238103def..2705fb1ba36644381fdebf83304b7eb78529cb4f 100644
--- a/chrome/test/base/chrome_process_util.cc
+++ b/chrome/test/base/chrome_process_util.cc
@@ -21,23 +21,9 @@ using base::TimeTicks;
namespace {
-// Returns the executable name of the current Chrome browser process.
-const base::FilePath::CharType* GetRunningBrowserExecutableName() {
- const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
- if (cmd_line->HasSwitch(switches::kEnableChromiumBranding))
- return chrome::kBrowserProcessExecutableNameChromium;
- return chrome::kBrowserProcessExecutableName;
-}
-
// Returns the executable name of the current Chrome helper process.
std::vector<base::FilePath::StringType> GetRunningHelperExecutableNames() {
- base::FilePath::StringType name;
- const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
- if (cmd_line->HasSwitch(switches::kEnableChromiumBranding)) {
- name = chrome::kHelperProcessExecutableNameChromium;
- } else {
- name = chrome::kHelperProcessExecutableName;
- }
+ base::FilePath::StringType name = chrome::kHelperProcessExecutableName;
std::vector<base::FilePath::StringType> names;
names.push_back(name);
@@ -95,7 +81,7 @@ class ChildProcessFilter : public base::ProcessFilter {
ChromeProcessList GetRunningChromeProcesses(base::ProcessId browser_pid) {
const base::FilePath::CharType* executable_name =
- GetRunningBrowserExecutableName();
+ chrome::kBrowserProcessExecutableName;
ChromeProcessList result;
if (browser_pid == static_cast<base::ProcessId>(-1))
return result;
« no previous file with comments | « no previous file | chrome/test/base/test_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698