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

Unified Diff: chrome/browser/resources/md_history/side_bar.js

Issue 1729263005: MD History: Display synced tabs history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdh_shared_styles
Patch Set: address comments Created 4 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/resources/md_history/side_bar.js
diff --git a/chrome/test/data/extensions/api_test/service_worker/background/page.js b/chrome/browser/resources/md_history/side_bar.js
similarity index 54%
copy from chrome/test/data/extensions/api_test/service_worker/background/page.js
copy to chrome/browser/resources/md_history/side_bar.js
index 7bd53d9b3bdbb8cd1ff5cae9b4baa9a7b2742133..201b2b6537d2b2901f0cfa51ee59725fdab04553 100644
--- a/chrome/test/data/extensions/api_test/service_worker/background/page.js
+++ b/chrome/browser/resources/md_history/side_bar.js
@@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.runtime.sendMessage({sourceCheck: true}, function(e) {
- chrome.test.sendMessage(e.label);
+Polymer({
+ is: 'history-side-bar',
+
+ onSelect: function(e, details) {
tsergeant 2016/03/10 06:02:52 Nit: Make this private
calamity 2016/03/14 02:29:39 Done.
+ this.fire('switch-display', { display: details.item.id });
+ },
+
});
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | chrome/browser/resources/md_history/synced_device_card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698