Index: chrome/browser/ui/ash/chrome_shell_delegate.cc |
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc |
index 1b9a2c670c811eea3f07a94c938e1219e69ebd97..8697122de5a2c12a5fa4691d38fec20ab0e4b747 100644 |
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc |
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc |
@@ -336,11 +336,6 @@ service_manager::Connector* ChromeShellDelegate::GetShellConnector() const { |
return content::ServiceManagerConnection::GetForProcess()->GetConnector(); |
} |
-bool ChromeShellDelegate::IsFirstRunAfterBoot() const { |
- return base::CommandLine::ForCurrentProcess()->HasSwitch( |
- chromeos::switches::kFirstExecAfterBoot); |
-} |
- |
bool ChromeShellDelegate::IsMultiProfilesEnabled() const { |
if (!profiles::IsMultipleProfilesEnabled()) |
return false; |
@@ -392,7 +387,9 @@ bool ChromeShellDelegate::IsForceMaximizeOnFirstRun() const { |
} |
void ChromeShellDelegate::PreInit() { |
- chromeos::LoadDisplayPreferences(IsFirstRunAfterBoot()); |
+ bool first_run_after_boot = base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ chromeos::switches::kFirstExecAfterBoot); |
+ chromeos::LoadDisplayPreferences(first_run_after_boot); |
// Object owns itself, and deletes itself when Observer::OnShutdown is called: |
new policy::DisplayRotationDefaultHandler(); |
// Set the observer now so that we can save the initial state |