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

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: 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 9482a8f9ff59e8f1dccacd05610667ed91b0fd9d..0c9a859a91fb2b8630f966c915d8e0b775f8a0dc 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/profiles/profile.h"
#include "chrome/browser/ui/webui/ntp/thumbnail_source.h"
#include "chrome/common/chrome_notification_types.h"
@@ -60,6 +61,7 @@ InstantService::InstantService(Profile* profile)
}
content::URLDataSource::Add(profile, new ThumbnailSource(profile));
+ content::URLDataSource::Add(profile, new LocalNTPSource());
}
InstantService::~InstantService() {

Powered by Google App Engine
This is Rietveld 408576698