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

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

Issue 2686683002: Deprecate most of gaia_auth extension (Closed)
Patch Set: remove unused data member from GaiaAuthExtensionLoader Created 3 years, 10 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/gaia_auth/util.js
diff --git a/chrome/browser/resources/gaia_auth/util.js b/chrome/browser/resources/gaia_auth/util.js
deleted file mode 100644
index 1ad55136f41d5f44af562954c4aa34b50114d534..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/gaia_auth/util.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * Alias for document.getElementById.
- * @param {string} id The ID of the element to find.
- * @return {HTMLElement} The found element or null if not found.
- */
-function $(id) {
- return document.getElementById(id);
-}
-
-/**
- * Creates a new URL which is the old URL with a GET param of key=value.
- * Copied from ui/webui/resources/js/util.js.
- * @param {string} url The base URL. There is not sanity checking on the URL so
- * it must be passed in a proper format.
- * @param {string} key The key of the param.
- * @param {string} value The value of the param.
- * @return {string} The new URL.
- */
-function appendParam(url, key, value) {
- var param = encodeURIComponent(key) + '=' + encodeURIComponent(value);
-
- if (url.indexOf('?') == -1)
- return url + '?' + param;
- return url + '&' + param;
-}
-
-/**
- * Creates a new URL by striping all query parameters.
- * @param {string} url The original URL.
- * @return {string} The new URL with all query parameters stripped.
- */
-function stripParams(url) {
- return url.substring(0, url.indexOf('?')) || url;
-}
-
-/**
- * Extract domain name from an URL.
- * @param {string} url An URL string.
- * @return {string} The host name of the URL.
- */
-function extractDomain(url) {
- var a = document.createElement('a');
- a.href = url;
- return a.hostname;
-}
« no previous file with comments | « chrome/browser/resources/gaia_auth/saml_injected.js ('k') | chrome/browser/resources/gaia_auth_host/channel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698