Index: chrome/browser/chromeos/login/login_display_host_impl.cc |
diff --git a/chrome/browser/chromeos/login/login_display_host_impl.cc b/chrome/browser/chromeos/login/login_display_host_impl.cc |
index eccaf7fc5c718bec8652cd4c9777ede199a53b97..52565c6f8ce582356b744b2cdd9f1078e3668079 100644 |
--- a/chrome/browser/chromeos/login/login_display_host_impl.cc |
+++ b/chrome/browser/chromeos/login/login_display_host_impl.cc |
@@ -25,6 +25,7 @@ |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
#include "chrome/browser/chromeos/customization_document.h" |
+#include "chrome/browser/chromeos/first_run/drive_first_run_controller.h" |
#include "chrome/browser/chromeos/first_run/first_run_controller.h" |
#include "chrome/browser/chromeos/input_method/input_method_util.h" |
#include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
@@ -297,6 +298,17 @@ LoginDisplayHostImpl::~LoginDisplayHostImpl() { |
// completion. |
(new FirstRunController())->Start(); |
} |
+ |
+#if defined(GOOGLE_CHROME_BUILD) |
achuithb
2013/11/04 20:33:24
Why only for official builds?
Tim Song
2013/11/05 01:18:06
We won't have the Drive app installed by default i
achuithb
2013/11/05 01:23:06
The code handles this case though right? It fails
|
+ // TODO(tengs): This should be refactored together with the first run UI. |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableDriveOfflineFirstRun)) { |
+ if (UserManager::Get()->IsCurrentUserNew()) { |
+ // DriveOptInController will delete itself when finished. |
+ (new DriveFirstRunController())->EnableOfflineMode(); |
+ } |
+ } |
+#endif |
} |
//////////////////////////////////////////////////////////////////////////////// |