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

Side by Side Diff: ui/file_manager/zip_archiver/js/passphrase-dialog.js

Issue 2807063002: Replace Libarchive with MiniZip. (Closed)
Patch Set: Fix a few nits. Created 3 years, 8 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 2014 The Chromium OS Authors. All rights reserved. 1 // Copyright 2014 The Chromium OS 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 * @suppress {globalThis|missingProperties} 7 * @suppress {globalThis|missingProperties}
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
11 is: "passphrase-dialog",
11 i18n: function(name) { 12 i18n: function(name) {
12 // For tests, chrome.i18n API is not available. 13 // For tests, chrome.i18n API is not available.
13 return chrome.i18n ? chrome.i18n.getMessage(name) : name; 14 return chrome.i18n ? chrome.i18n.getMessage(name) : name;
14 }, 15 },
15 16
16 cancel: function() { 17 cancel: function() {
17 window.close(); 18 window.close();
18 }, 19 },
19 20
20 accept: function() { 21 accept: function() {
(...skipping 11 matching lines...) Expand all
32 }.bind(this)); 33 }.bind(this));
33 34
34 // Show the window once ready. Not available for tests. 35 // Show the window once ready. Not available for tests.
35 if (chrome.app && chrome.app.window) 36 if (chrome.app && chrome.app.window)
36 chrome.app.window.current().show(); 37 chrome.app.window.current().show();
37 38
38 if (window.onEverythingLoaded) 39 if (window.onEverythingLoaded)
39 window.onEverythingLoaded(); 40 window.onEverythingLoaded();
40 } 41 }
41 }); 42 });
OLDNEW
« no previous file with comments | « ui/file_manager/zip_archiver/js/compressor.js ('k') | ui/file_manager/zip_archiver/js/request.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698