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

Unified Diff: chrome/browser/android/dev_tools_server.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
« no previous file with comments | « no previous file | chrome/browser/android/password_ui_view_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/dev_tools_server.cc
diff --git a/chrome/browser/android/dev_tools_server.cc b/chrome/browser/android/dev_tools_server.cc
index e42b25fe3f128465a3876324d940383bdb74d89d..57c91db932f4a061027fb134284034d30a1091e1 100644
--- a/chrome/browser/android/dev_tools_server.cc
+++ b/chrome/browser/android/dev_tools_server.cc
@@ -105,8 +105,9 @@ class DevToolsServerDelegate :
}
std::string GetPageThumbnailData(const GURL& url) override {
- Profile* profile =
- ProfileManager::GetLastUsedProfile()->GetOriginalProfile();
+ Profile* profile = g_browser_process->profile_manager()
+ ->GetLastUsedProfile()
+ ->GetOriginalProfile();
scoped_refptr<history::TopSites> top_sites =
TopSitesFactory::GetForProfile(profile);
if (top_sites) {
@@ -119,8 +120,9 @@ class DevToolsServerDelegate :
private:
static void PopulatePageThumbnails() {
- Profile* profile =
- ProfileManager::GetLastUsedProfile()->GetOriginalProfile();
+ Profile* profile = g_browser_process->profile_manager()
+ ->GetLastUsedProfile()
+ ->GetOriginalProfile();
scoped_refptr<history::TopSites> top_sites =
TopSitesFactory::GetForProfile(profile);
if (top_sites)
« no previous file with comments | « no previous file | chrome/browser/android/password_ui_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698