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

Unified Diff: chrome/browser/ui/app_list/app_list_service_impl.cc

Issue 1128173005: Clean up ProfileManager interface. Base URL: https://chromium.googlesource.com/chromium/src@issue479309
Patch Set: sync Created 5 years, 7 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/app_list/app_list_service_impl.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_impl.cc b/chrome/browser/ui/app_list/app_list_service_impl.cc
index 3ed976e2c30f0c9b0fe7a0c95b15e73968743156..70511ec754444fa6b57d22edfd3b64251c400432 100644
--- a/chrome/browser/ui/app_list/app_list_service_impl.cc
+++ b/chrome/browser/ui/app_list/app_list_service_impl.cc
@@ -297,9 +297,8 @@ void AppListServiceImpl::SetAppListNextPaintCallback(void (*callback)()) {}
void AppListServiceImpl::Init(Profile* initial_profile) {}
-base::FilePath AppListServiceImpl::GetProfilePath(
- const base::FilePath& user_data_dir) {
- return user_data_dir.AppendASCII(GetProfileName());
+base::FilePath AppListServiceImpl::GetProfilePath() {
+ return profile_store_->GetUserDataDir().AppendASCII(GetProfileName());
}
void AppListServiceImpl::SetProfilePath(const base::FilePath& profile_path) {
@@ -361,9 +360,8 @@ void AppListServiceImpl::OnProfileWillBeRemoved(
void AppListServiceImpl::Show() {
profile_loader_->LoadProfileInvalidatingOtherLoads(
- GetProfilePath(profile_store_->GetUserDataDir()),
- base::Bind(&AppListServiceImpl::ShowForProfile,
- weak_factory_.GetWeakPtr()));
+ GetProfilePath(), base::Bind(&AppListServiceImpl::ShowForProfile,
+ weak_factory_.GetWeakPtr()));
}
void AppListServiceImpl::ShowForVoiceSearch(
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_impl.h ('k') | chrome/browser/ui/app_list/app_list_service_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698