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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 7248038: Profiles: Make NTPResourceCache a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test compile Created 9 years, 6 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/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index f070b15393e0eb8a323cc81f77ed02a734e57e51..8eb4fbf0ef0d3abc91c27e694c378f820dbfd2b8 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -36,6 +36,7 @@
#include "chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.h"
#include "chrome/browser/ui/webui/ntp/ntp_login_handler.h"
#include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h"
+#include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
#include "chrome/browser/ui/webui/ntp/shown_sections_handler.h"
#include "chrome/browser/ui/webui/ntp/value_helper.h"
#include "chrome/browser/ui/webui/theme_source.h"
@@ -662,7 +663,8 @@ void NewTabUI::NewTabHTMLSource::StartDataRequest(const std::string& path,
}
scoped_refptr<RefCountedBytes> html_bytes(
- profile_->GetNTPResourceCache()->GetNewTabHTML(is_incognito));
+ NTPResourceCacheFactory::GetForProfile(profile_)->
+ GetNewTabHTML(is_incognito));
SendResponse(request_id, html_bytes);
}

Powered by Google App Engine
This is Rietveld 408576698