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

Unified Diff: chrome/browser/resources/shared/js/util.js

Issue 3526020: Redirected network details to options DOM UI page.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
« no previous file with comments | « chrome/browser/resources/options/chromeos_internet_options_page.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/shared/js/util.js
===================================================================
--- chrome/browser/resources/shared/js/util.js (revision 61713)
+++ chrome/browser/resources/shared/js/util.js (working copy)
@@ -55,3 +55,19 @@
}
return 'url("' + s2 + '")';
}
+
+/**
+ * Parses query parameters from Location.
+ * @param {string} s The URL to generate the CSS url for.
+ * @return {object} Dictionary containing name value pairs for URL
+ */
+function parseQueryParams(location) {
+ var params = {};
+ var query = unescape(location.search.substring(1));
+ var vars = query.split("&");
+ for (var i=0; i < vars.length; i++) {
+ var pair = vars[i].split("=");
+ params[pair[0]] = pair[1];
+ }
+ return params;
+ }
« no previous file with comments | « chrome/browser/resources/options/chromeos_internet_options_page.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698