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