summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 14:06:42 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-29 14:06:42 +0000
commit0203c4fcc60f4111fc7476ff2af4fa12177b600d (patch)
treece5eb6de876905d92423867fb2f20864b8187843
parent0d95693ed12939d0fe8dd5f07649d2c481bd55b1 (diff)
downloadchromium_src-0203c4fcc60f4111fc7476ff2af4fa12177b600d.zip
chromium_src-0203c4fcc60f4111fc7476ff2af4fa12177b600d.tar.gz
chromium_src-0203c4fcc60f4111fc7476ff2af4fa12177b600d.tar.bz2
Fix inverted logic for aborting out of the running as root check.
We want to skip the check if a user data dir is specified, not if one is not specified. BUG=none TEST=none Review URL: http://codereview.chromium.org/6901054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83511 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/browser_main_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser_main_gtk.cc b/chrome/browser/browser_main_gtk.cc
index 7ac9824..57b07d1 100644
--- a/chrome/browser/browser_main_gtk.cc
+++ b/chrome/browser/browser_main_gtk.cc
@@ -76,7 +76,7 @@ void BrowserMainPartsGtk::PreEarlyInitialization() {
void BrowserMainPartsGtk::DetectRunningAsRoot() {
if (geteuid() == 0) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- if (!parsed_command_line().HasSwitch(switches::kUserDataDir))
+ if (parsed_command_line().HasSwitch(switches::kUserDataDir))
return;
gfx::GtkInitFromCommandLine(command_line);