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

Unified Diff: chrome/browser/dom_distiller/tab_utils_android.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/dom_distiller/tab_utils_android.cc
diff --git a/chrome/browser/dom_distiller/tab_utils_android.cc b/chrome/browser/dom_distiller/tab_utils_android.cc
index 83598cbe5bbbc90baa77c4a624117607c26604d7..b2fd31197321a9f5cb9ee8ddf536eaa0f73272fc 100644
--- a/chrome/browser/dom_distiller/tab_utils_android.cc
+++ b/chrome/browser/dom_distiller/tab_utils_android.cc
@@ -8,6 +8,7 @@
#include "base/android/jni_string.h"
#include "base/prefs/pref_service.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/dom_distiller/tab_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -43,7 +44,7 @@ jstring GetFormattedUrlFromOriginalDistillerUrl(JNIEnv* env,
jclass clazz,
jstring j_url) {
GURL url(base::android::ConvertJavaStringToUTF8(env, j_url));
- Profile* profile = ProfileManager::GetLastUsedProfile();
+ Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile();
std::string languages; // Empty if Profile cannot be retrieved.
if (profile) {
languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
« no previous file with comments | « chrome/browser/devtools/chrome_devtools_discovery_provider.cc ('k') | chrome/browser/feedback/show_feedback_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698