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

Unified Diff: chrome/browser/chrome_browser_main_gtk.cc

Issue 7850026: Aura under Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: White spaces Created 9 years, 3 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
Index: chrome/browser/chrome_browser_main_gtk.cc
diff --git a/chrome/browser/chrome_browser_main_gtk.cc b/chrome/browser/chrome_browser_main_gtk.cc
index b5d29763a942f0494903575c7074c25140219288..c3a327c0360dd11106e8cdedcc48e867c582e5f2 100644
--- a/chrome/browser/chrome_browser_main_gtk.cc
+++ b/chrome/browser/chrome_browser_main_gtk.cc
@@ -86,6 +86,9 @@ void ChromeBrowserMainPartsGtk::PreEarlyInitialization() {
}
void ChromeBrowserMainPartsGtk::DetectRunningAsRoot() {
+#if defined(USE_AURA)
+ // TODO(saintlou):
+#else
if (geteuid() == 0) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (parsed_command_line().HasSwitch(switches::kUserDataDir))
@@ -124,6 +127,7 @@ void ChromeBrowserMainPartsGtk::DetectRunningAsRoot() {
gtk_widget_destroy(dialog);
exit(EXIT_FAILURE);
}
+#endif
}
namespace content {

Powered by Google App Engine
This is Rietveld 408576698