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

Unified Diff: chrome/browser/instant/instant_service.cc

Issue 12840003: Implement local NTP for fallback. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Respond to Samarth's comments. Created 7 years, 9 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/instant/instant_service.cc
diff --git a/chrome/browser/instant/instant_service.cc b/chrome/browser/instant/instant_service.cc
index e94639e8a6df5d93467a180af7a82f37af719c79..45402b43af01c1c6619c7ea0af2a9ec6e9674b12 100644
--- a/chrome/browser/instant/instant_service.cc
+++ b/chrome/browser/instant/instant_service.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/history/history_notifications.h"
#include "chrome/browser/instant/instant_io_context.h"
#include "chrome/browser/instant/instant_service_factory.h"
+#include "chrome/browser/instant/local_ntp_source.h"
#include "chrome/browser/instant/local_omnibox_popup_source.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/favicon_source.h"
@@ -70,6 +71,7 @@ InstantService::InstantService(Profile* profile)
content::URLDataSource::Add(profile, new FaviconSource(
profile, FaviconSource::FAVICON));
content::URLDataSource::Add(profile, new LocalOmniboxPopupSource());
+ content::URLDataSource::Add(profile, new LocalNTPSource());
}
InstantService::~InstantService() {

Powered by Google App Engine
This is Rietveld 408576698