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

Side by Side Diff: chrome/browser/resources/settings/device_page/stylus.js

Issue 2688513005: cros: Open play store app for md-settings stylus "Find more apps" link (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-stylus' is the settings subpage with stylus-specific settings. 7 * 'settings-stylus' is the settings subpage with stylus-specific settings.
8 */ 8 */
9 9
10 /** @const */ var FIND_MORE_APPS_URL = 'https://play.google.com/store/apps/' + 10 /** @const */ var FIND_MORE_APPS_URL = 'https://play.google.com/store/apps/' +
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * @param {Array<settings.NoteAppInfo>} apps 82 * @param {Array<settings.NoteAppInfo>} apps
83 * @param {boolean} waitingForAndroid 83 * @param {boolean} waitingForAndroid
84 * @private 84 * @private
85 */ 85 */
86 showApps_: function(apps, waitingForAndroid) { 86 showApps_: function(apps, waitingForAndroid) {
87 return apps.length > 0 && !waitingForAndroid; 87 return apps.length > 0 && !waitingForAndroid;
88 }, 88 },
89 89
90 /** @private */ 90 /** @private */
91 onFindAppsTap_: function() { 91 onFindAppsTap_: function() {
92 window.open(FIND_MORE_APPS_URL); 92 this.browserProxy_.showPlayStore(FIND_MORE_APPS_URL);
93 }, 93 },
94 }); 94 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698