Chromium Code Reviews| Index: chrome/browser/browser_main_gtk.cc |
| =================================================================== |
| --- chrome/browser/browser_main_gtk.cc (revision 77186) |
| +++ chrome/browser/browser_main_gtk.cc (working copy) |
| @@ -78,6 +78,9 @@ |
| const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| gfx::GtkInitFromCommandLine(command_line); |
| + if (!parsed_command_line().HasSwitch(switches::kUserDataDir)) |
| + return; |
|
Elliot Glaysher
2011/03/07 23:40:16
You should move this above the gtk initialization
Mike Belshe
2011/03/08 16:34:40
Done.
|
| + |
| // Get just enough of our resource machinery up so we can extract the |
| // locale appropriate string. Note that the GTK implementation ignores the |
| // passed in parameter and checks the LANG environment variables instead. |
| @@ -94,6 +97,7 @@ |
| "%s", |
| message.c_str()); |
| + LOG(ERROR) << "Startup refusing to run as root."; |
| message = l10n_util::GetStringFUTF8( |
| IDS_REFUSE_TO_RUN_AS_ROOT_2, |
| l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); |