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

Unified Diff: chrome/browser/chromeos/display/display_configuration_observer.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 | « ash/test/test_shell_delegate.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/display/display_configuration_observer.cc
diff --git a/chrome/browser/chromeos/display/display_configuration_observer.cc b/chrome/browser/chromeos/display/display_configuration_observer.cc
index a3674c1074d1dd80f12242b390aa1939ee66e4b0..5e36c434a2b22746e6c5aafd80f8dbe3ac16abb3 100644
--- a/chrome/browser/chromeos/display/display_configuration_observer.cc
+++ b/chrome/browser/chromeos/display/display_configuration_observer.cc
@@ -4,11 +4,11 @@
#include "chrome/browser/chromeos/display/display_configuration_observer.h"
-#include "ash/common/shell_delegate.h"
-#include "ash/common/wm_shell.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
+#include "base/command_line.h"
#include "chrome/browser/chromeos/display/display_preferences.h"
+#include "chromeos/chromeos_switches.h"
namespace chromeos {
@@ -22,7 +22,8 @@ DisplayConfigurationObserver::~DisplayConfigurationObserver() {
void DisplayConfigurationObserver::OnDisplaysInitialized() {
// Update the display pref with the initial power state.
- if (ash::WmShell::Get()->delegate()->IsFirstRunAfterBoot())
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(chromeos::switches::kFirstExecAfterBoot))
StoreDisplayPrefs();
}
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698