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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 18421007: [win] Set the profile path when enabling the app launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, and fix a few things Created 7 years, 5 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/ui/webui/options/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index 94a0929f23a74a9965d8f776095cd9a86ebc1d53..fe7820f7b57e6d0c35587ee190d272f4e8107583 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -335,7 +335,10 @@ void ManageProfileHandler::SwitchAppListProfile(const ListValue* args) {
!base::GetValueAsFilePath(*file_path_value, &profile_file_path))
return;
- AppListService::Get()->SetAppListProfile(profile_file_path);
+ AppListService* app_list_service = AppListService::Get();
+ app_list_service->SetProfilePath(profile_file_path);
+ app_list_service->ShowForSavedProfile();
+
// Close the settings app, since it will now be for the wrong profile.
web_ui()->GetWebContents()->Close();
}

Powered by Google App Engine
This is Rietveld 408576698