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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_single.js

Issue 2532103002: Add support for components/ntp_tiles in InstantService (Closed)
Patch Set: Created 4 years, 1 month 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/resources/local_ntp/most_visited_single.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_single.js b/chrome/browser/resources/local_ntp/most_visited_single.js
index 45db544b506c8f7b4c3c1909eab0df4d564f2043..bc4187cafc0d88f111c491ed0931374e42444f3e 100644
--- a/chrome/browser/resources/local_ntp/most_visited_single.js
+++ b/chrome/browser/resources/local_ntp/most_visited_single.js
@@ -302,7 +302,8 @@ var addTile = function(args) {
return;
data.tid = data.rid;
- data.tileSource = NTPLoggingTileSource.CLIENT;
+ data.tileSource = data.isServerSide ?
sfiera 2016/11/29 10:24:03 isServerSide is added by this CL, right? Can we ju
Marc Treib 2016/11/29 15:20:13 Yes, it's added by this CL. What do you mean by se
sfiera 2016/11/29 15:27:46 I mean, you start with an enum in InstantService,
Marc Treib 2016/12/01 14:49:40 Ah, now I see - yes, that makes a lot of sense. (I
Marc Treib 2016/12/07 14:01:31 Done.
+ NTPLoggingTileSource.SERVER : NTPLoggingTileSource.CLIENT;
if (!data.faviconUrl) {
data.faviconUrl = 'chrome-search://favicon/size/16@' +
window.devicePixelRatio + 'x/' + data.renderViewId + '/' + data.tid;

Powered by Google App Engine
This is Rietveld 408576698