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); |