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

Unified Diff: chrome/browser/resources/settings/downloads_page/downloads_page.html

Issue 2178273002: MD Settings: add a <controlled-button> that uses prefs to disable itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: asdf Created 4 years, 5 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/settings/downloads_page/downloads_page.html
diff --git a/chrome/browser/resources/settings/downloads_page/downloads_page.html b/chrome/browser/resources/settings/downloads_page/downloads_page.html
index b91f8aefa4aae82d3d4272a397ededc066c085c2..cc145bb6616292137582d47b394d00549e8789a6 100644
--- a/chrome/browser/resources/settings/downloads_page/downloads_page.html
+++ b/chrome/browser/resources/settings/downloads_page/downloads_page.html
@@ -1,6 +1,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="/controls/controlled_button.html">
<link rel="import" href="/controls/settings_checkbox.html">
<link rel="import" href="/controls/settings_input.html">
<link rel="import" href="/settings_shared_css.html">
@@ -25,10 +25,11 @@
<div class="secondary">[[prefs.download.default_directory.value]]</div>
</div>
<div class="secondary-action">
- <paper-button class="secondary-button" id="changeDownloadsPath"
- on-tap="selectDownloadLocation_">
+ <controlled-button class="secondary-button" id="changeDownloadsPath"
+ on-tap="selectDownloadLocation_"
+ pref="[[prefs.download.default_directory]]">
$i18n{changeDownloadLocation}
- </paper-button>
+ </controlled-button>
</div>
</div>
<div class="settings-box block">

Powered by Google App Engine
This is Rietveld 408576698