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

Unified Diff: chrome/browser/chromeos/login/session/user_session_manager.cc

Issue 2850123002: M58: arc: Set migration success notification pref. (Closed)
Patch Set: Fix some comment for M58 Created 3 years, 8 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/chromeos/arc/arc_util.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/session/user_session_manager.cc
diff --git a/chrome/browser/chromeos/login/session/user_session_manager.cc b/chrome/browser/chromeos/login/session/user_session_manager.cc
index 6430ca7599385c5e82684ebe5c0f898b91d0d6d1..ab8eb1501459d45d9cc49ca95d90466d91edfea5 100644
--- a/chrome/browser/chromeos/login/session/user_session_manager.cc
+++ b/chrome/browser/chromeos/login/session/user_session_manager.cc
@@ -30,7 +30,9 @@
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
+#include "chrome/browser/chromeos/arc/arc_migration_guide_notification.h"
#include "chrome/browser/chromeos/arc/arc_service_launcher.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/base/locale_util.h"
#include "chrome/browser/chromeos/boot_times_recorder.h"
#include "chrome/browser/chromeos/first_run/first_run.h"
@@ -512,7 +514,10 @@ void UserSessionManager::StartSession(
user_context.GetDeviceId());
}
- PrepareProfile();
+ arc::UpdateArcFileSystemCompatibilityPrefIfNeeded(
+ user_context_.GetAccountId(),
+ ProfileHelper::GetProfilePathByUserIdHash(user_context_.GetUserIDHash()),
+ base::Bind(&UserSessionManager::PrepareProfile, AsWeakPtr()));
}
void UserSessionManager::DelegateDeleted(UserSessionManagerDelegate* delegate) {
@@ -1806,6 +1811,10 @@ void UserSessionManager::DoBrowserLaunchInternal(Profile* profile,
// the message accordingly.
if (ShouldShowEolNotification(profile))
CheckEolStatus(profile);
+
+ // Show the one-time notification and update the relevant pref about the
+ // completion of the file system migration necessary for ARC, when needed.
+ arc::ShowArcMigrationSuccessNotificationIfNeeded(profile);
}
void UserSessionManager::RespectLocalePreferenceWrapper(
« no previous file with comments | « chrome/browser/chromeos/arc/arc_util.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698