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

Side by Side Diff: chrome/browser/resources/settings/downloads_page/downloads_page.html

Issue 2616713002: MD Settings: only do downloads path normalization on ChromeOS (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/downloads_page/downloads_page.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html">
3 <link rel="import" href="/controls/controlled_button.html"> 3 <link rel="import" href="/controls/controlled_button.html">
4 <link rel="import" href="/controls/settings_checkbox.html"> 4 <link rel="import" href="/controls/settings_checkbox.html">
5 <link rel="import" href="/settings_shared_css.html"> 5 <link rel="import" href="/settings_shared_css.html">
6 6
7 <dom-module id="settings-downloads-page"> 7 <dom-module id="settings-downloads-page">
8 <template> 8 <template>
9 <style include="settings-shared"></style> 9 <style include="settings-shared"></style>
10 <div class="settings-box first two-line"> 10 <div class="settings-box first two-line">
11 <div class="start"> 11 <div class="start">
12 <div>$i18n{downloadLocation}</div> 12 <div>$i18n{downloadLocation}</div>
13 <div class="secondary"> 13 <div class="secondary">
14 <if expr="not chromeos">
15 [[prefs.download.default_directory.value]]
16 </if>
17 <if expr="chromeos">
14 [[getDownloadLocation_(prefs.download.default_directory.value)]] 18 [[getDownloadLocation_(prefs.download.default_directory.value)]]
19 </if>
15 </div> 20 </div>
16 </div> 21 </div>
17 <div class="secondary-action"> 22 <div class="secondary-action">
18 <controlled-button class="secondary-button" id="changeDownloadsPath" 23 <controlled-button class="secondary-button" id="changeDownloadsPath"
19 on-tap="selectDownloadLocation_" 24 on-tap="selectDownloadLocation_"
20 pref="[[prefs.download.default_directory]]"> 25 pref="[[prefs.download.default_directory]]">
21 $i18n{changeDownloadLocation} 26 $i18n{changeDownloadLocation}
22 </controlled-button> 27 </controlled-button>
23 </div> 28 </div>
24 </div> 29 </div>
25 <div class="settings-box block"> 30 <div class="settings-box block">
26 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" 31 <settings-checkbox pref="{{prefs.download.prompt_for_download}}"
27 label="$i18n{promptForDownload}"> 32 label="$i18n{promptForDownload}">
28 </settings-checkbox> 33 </settings-checkbox>
29 <if expr="chromeos"> 34 <if expr="chromeos">
30 <settings-checkbox pref="{{prefs.gdata.disabled}}" 35 <settings-checkbox pref="{{prefs.gdata.disabled}}"
31 label="$i18n{disconnectGoogleDriveAccount}" 36 label="$i18n{disconnectGoogleDriveAccount}"
32 hidden="[[!pageVisibility.googleDrive]]"> 37 hidden="[[!pageVisibility.googleDrive]]">
33 </settings-checkbox> 38 </settings-checkbox>
34 </if> 39 </if>
35 </div> 40 </div>
36 </template> 41 </template>
37 <script src="downloads_page.js"></script> 42 <script src="downloads_page.js"></script>
38 </dom-module> 43 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/downloads_page/downloads_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698