Commit 798aee6f authored by Julien Brianceau's avatar Julien Brianceau Committed by Commit Bot

arc: Fix few typos in comments

Bug: none
Change-Id: Iba0bacce5bd0baf9079bab9a8ce0e2bb4f884fca
Reviewed-on: https://chromium-review.googlesource.com/565405Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485926}
parent 69be183e
......@@ -128,14 +128,14 @@ void ShowArcMigrationSuccessNotificationIfNeeded(Profile* profile) {
// Log a warning message because, for now, this should not basically happen
// except for some exceptional situation or due to some bug.
LOG(WARNING) << "Migration has happend for an ARC-disallowed user.";
LOG(WARNING) << "Migration has happened for an ARC-disallowed user.";
} else {
message_center::NotifierId notifier_id(
message_center::NotifierId::SYSTEM_COMPONENT, kNotifierId);
notifier_id.profile_id = account_id.GetUserEmail();
// Delay the notification to make sure that it is not hidden behind windows
// which are shown at the beginnig of user session (e.g. Chrome).
// which are shown at the beginning of user session (e.g. Chrome).
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE,
base::BindOnce(&DoShowArcMigrationSuccessNotification, notifier_id),
......
......@@ -10,12 +10,12 @@ class Profile;
namespace arc {
// Shows a notification for guiding the user for file system migration.
// This is used when an ARC app is launched while ARC is temporaliry disabled
// This is used when an ARC app is launched while ARC is temporarily disabled
// due to the file system incompatibility.
void ShowArcMigrationGuideNotification(Profile* profile);
// Shows a one-time notification when this is the first sign-in after the
// migration has happend successfully. It records the fact to the pref that no
// migration has happened successfully. It records the fact to the pref that no
// more notification is necessary, either when it showed the notification or
// when the profile is newly created on the compatible filesystem.
void ShowArcMigrationSuccessNotificationIfNeeded(Profile* profile);
......
......@@ -27,11 +27,11 @@ namespace arc {
// Values to be stored in the local state preference to keep track of the
// filesystem encryption migration status.
enum FileSystemCompatibilityState : int32_t {
// No migiration has happend, user keeps using the old file system.
// No migration has happened, user keeps using the old file system.
kFileSystemIncompatible = 0,
// Migration has happend. New filesystem is in use.
// Migration has happened. New filesystem is in use.
kFileSystemCompatible = 1,
// Migration has happend, and a notification about the fact was already shown.
// Migration has happened, and a notification about it was already shown.
kFileSystemCompatibleAndNotified = 2,
// Existing code assumes that kFileSystemIncompatible is the only state
......@@ -47,7 +47,7 @@ enum FileSystemCompatibilityState : int32_t {
bool IsArcAllowedForProfile(const Profile* profile);
// Returns true if the profile is temporarily blocked to run ARC in the current
// session, because the filesystem storing the profile is incomaptible with the
// session, because the filesystem storing the profile is incompatible with the
// currently installed ARC version.
//
// The actual filesystem check is performed only when it is running on the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment