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

Side by Side Diff: chrome/browser/resources/gaia_auth_host/gaia_auth_host.js

Issue 45463004: Assign unique partition ID to gaia webview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium 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 An UI component to host gaia auth extension in an iframe. 6 * @fileoverview An UI component to host gaia auth extension in an iframe.
7 * After the component binds with an iframe, call its {@code load} to start the 7 * After the component binds with an iframe, call its {@code load} to start the
8 * authentication flow. There are two events would be raised after this point: 8 * authentication flow. There are two events would be raised after this point:
9 * a 'ready' event when the authentication UI is ready to use and a 'completed' 9 * a 'ready' event when the authentication UI is ready to use and a 'completed'
10 * event when the authentication is completed successfully. If caller is 10 * event when the authentication is completed successfully. If caller is
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 * Supported params of auth extension. For a complete list, check out the 50 * Supported params of auth extension. For a complete list, check out the
51 * auth extension's main.js. 51 * auth extension's main.js.
52 * @type {!Array.<string>} 52 * @type {!Array.<string>}
53 * @const 53 * @const
54 */ 54 */
55 var SUPPORTED_PARAMS = [ 55 var SUPPORTED_PARAMS = [
56 'gaiaUrl', // Gaia url to use; 56 'gaiaUrl', // Gaia url to use;
57 'hl', // Language code for the user interface; 57 'hl', // Language code for the user interface;
58 'email', // Pre-fill the email field in Gaia UI; 58 'email', // Pre-fill the email field in Gaia UI;
59 'service', // Name of Gaia service; 59 'service', // Name of Gaia service;
60 'continueUrl' // Continue url to use; 60 'continueUrl', // Continue url to use;
61 'partitionId' // Partition ID for the embedded Gaia webview;
61 ]; 62 ];
62 63
63 /** 64 /**
64 * Supported localized strings. For a complete list, check out the auth 65 * Supported localized strings. For a complete list, check out the auth
65 * extension's offline.js 66 * extension's offline.js
66 * @type {!Array.<string>} 67 * @type {!Array.<string>}
67 * @const 68 * @const
68 */ 69 */
69 var LOCALIZED_STRING_PARAMS = [ 70 var LOCALIZED_STRING_PARAMS = [
70 'stringSignIn', 71 'stringSignIn',
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 }; 366 };
366 367
367 GaiaAuthHost.SUPPORTED_PARAMS = SUPPORTED_PARAMS; 368 GaiaAuthHost.SUPPORTED_PARAMS = SUPPORTED_PARAMS;
368 GaiaAuthHost.LOCALIZED_STRING_PARAMS = LOCALIZED_STRING_PARAMS; 369 GaiaAuthHost.LOCALIZED_STRING_PARAMS = LOCALIZED_STRING_PARAMS;
369 GaiaAuthHost.AuthMode = AuthMode; 370 GaiaAuthHost.AuthMode = AuthMode;
370 371
371 return { 372 return {
372 GaiaAuthHost: GaiaAuthHost 373 GaiaAuthHost: GaiaAuthHost
373 }; 374 };
374 }); 375 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698