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

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

Issue 45463004: Assign unique partition ID to gaia webview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: default partitionId to empty string if not supplied 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/gaia_auth/main.js
diff --git a/chrome/browser/resources/gaia_auth/main.js b/chrome/browser/resources/gaia_auth/main.js
index c0364e8543a014d23320904ba06c5637169613e4..6b413e6ff0a67eae6b43d29abd4c8c881d21f70e 100644
--- a/chrome/browser/resources/gaia_auth/main.js
+++ b/chrome/browser/resources/gaia_auth/main.js
@@ -56,6 +56,7 @@ Authenticator.prototype = {
this.continueUrl_.substring(0, this.continueUrl_.indexOf('?')) ||
this.continueUrl_;
this.inlineMode_ = params.inlineMode;
+ this.partitionId_ = params.partitionId || '';
document.addEventListener('DOMContentLoaded', this.onPageLoad.bind(this));
document.addEventListener('enableSAML', this.onEnableSAML_.bind(this));
@@ -128,6 +129,7 @@ Authenticator.prototype = {
loadFrame_: function() {
var gaiaFrame = $('gaia-frame');
+ gaiaFrame.partition = this.partitionId_;
lazyboy 2013/11/04 21:08:29 I'm wondering since partitionId_ is an increasing
guohui 2013/11/05 14:35:36 this is ok. In our use case, we always want a clea
gaiaFrame.src = this.getFrameUrl_();
if (this.inlineMode_) {
gaiaFrame.addEventListener(
« no previous file with comments | « no previous file | chrome/browser/resources/gaia_auth_host/gaia_auth_host.js » ('j') | chrome/browser/ui/webui/inline_login_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698