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

Unified Diff: chrome/browser/metrics/extensions_metrics_provider.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/metrics/extensions_metrics_provider.cc
diff --git a/chrome/browser/metrics/extensions_metrics_provider.cc b/chrome/browser/metrics/extensions_metrics_provider.cc
index 7af9b5a0824bc6bac22d9256a6fee90daa62537f..24cfedafcd001beb70682496e3c46b7ff89a9b8a 100644
--- a/chrome/browser/metrics/extensions_metrics_provider.cc
+++ b/chrome/browser/metrics/extensions_metrics_provider.cc
@@ -148,7 +148,7 @@ Profile* ExtensionsMetricsProvider::GetMetricsProfile() {
// ProfileManager::GetLastUsedProfile(), except that that has the side effect
// of creating a profile if it does not yet exist.
cached_profile_ = profile_manager->GetProfileByPath(
- profile_manager->GetLastUsedProfileDir(profile_manager->user_data_dir()));
+ profile_manager->GetLastUsedProfileDir());
if (cached_profile_) {
// Ensure that the returned profile is not an incognito profile.
cached_profile_ = cached_profile_->GetOriginalProfile();

Powered by Google App Engine
This is Rietveld 408576698