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

Unified Diff: chrome/browser/chromeos/login/login_display_host_impl.cc

Issue 55423004: Enable Google Drive offline mode automatically on first run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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..973837d21c8aa5677e360ea52a7a69a561a62101 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_opt_in_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)
+ // TODO(tengs): This should be refactored together with the first run UI.
achuithb 2013/11/01 19:25:15 Can we file a bug for this?
Tim Song 2013/11/02 00:13:14 I'll file the bug when this patch lands.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableDriveOfflineOptIn)) {
+ if (UserManager::Get()->IsCurrentUserNew()) {
+ // DriveOptInController will delete itself when finished.
+ (new DriveOptInController())->StartOfflineOptIn();
+ }
+ }
+#endif
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698