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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 2437393002: Remove ash::ShellDelegate::IsFirstRunAfterBoot method (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698