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

Unified Diff: chrome/browser/resources/options/certificate_manager.js

Issue 1509673004: Adding support for specifying user-cert filename from URL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/certificate_manager_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/certificate_manager.js
diff --git a/chrome/browser/resources/options/certificate_manager.js b/chrome/browser/resources/options/certificate_manager.js
index 8e9cad6115881b57a0bb073a0f989b4e1b3045c5..1191a4102e685e6a92bee1d258c9a447131fd551 100644
--- a/chrome/browser/resources/options/certificate_manager.js
+++ b/chrome/browser/resources/options/certificate_manager.js
@@ -221,6 +221,10 @@ cr.define('options', function() {
this.initalized_ = true;
OptionsPage.showTab($('personal-certs-nav-tab'));
chrome.send('populateCertificateManager');
+ if (this.hash && this.hash.search('user-cert:') == 1) {
+ chrome.send('importPersonalCertificate',
+ [false, decodeURIComponent(this.hash.slice(11))]);
+ }
}
}
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/certificate_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698