Index: chrome/browser/tab_contents/web_contents.cc |
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc |
index c73fc2e71572d720975ed07d6e798758e0aa26e5..906289495115dfe6a8fc4b2d0b5260127b670dda 100644 |
--- a/chrome/browser/tab_contents/web_contents.cc |
+++ b/chrome/browser/tab_contents/web_contents.cc |
@@ -1218,7 +1218,7 @@ WebPreferences WebContents::GetWebkitPrefs() { |
prefs->GetBoolean(prefs::kWebKitShrinksStandaloneImagesToFit); |
{ // Command line switches are used for preferences with no user interface. |
- CommandLine command_line; |
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
web_prefs.developer_extras_enabled = |
!command_line.HasSwitch(switches::kDisableDevTools) && |
prefs->GetBoolean(prefs::kWebKitDeveloperExtrasEnabled); |