Commit e1d7da9a authored by mgiuca@chromium.org's avatar mgiuca@chromium.org

--reset-app-list-install-state resets before trying to enable app list.

This means that running with --reset-app-list-install-state
--enable-app-list always re-installs the app list, even if it has
already been installed.

BUG=332324

Review URL: https://codereview.chromium.org/127753002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243837 0039d316-1c4b-4281-b951-d872f2087c98
parent d50efc4d
...@@ -273,11 +273,11 @@ void AppListServiceImpl::InvalidatePendingProfileLoads() { ...@@ -273,11 +273,11 @@ void AppListServiceImpl::InvalidatePendingProfileLoads() {
} }
void AppListServiceImpl::HandleCommandLineFlags(Profile* initial_profile) { void AppListServiceImpl::HandleCommandLineFlags(Profile* initial_profile) {
if (command_line_.HasSwitch(switches::kEnableAppList))
EnableAppList(initial_profile);
if (command_line_.HasSwitch(switches::kResetAppListInstallState)) if (command_line_.HasSwitch(switches::kResetAppListInstallState))
local_state_->SetBoolean(prefs::kAppLauncherHasBeenEnabled, false); local_state_->SetBoolean(prefs::kAppLauncherHasBeenEnabled, false);
if (command_line_.HasSwitch(switches::kEnableAppList))
EnableAppList(initial_profile);
} }
void AppListServiceImpl::SendUsageStats() { void AppListServiceImpl::SendUsageStats() {
......
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