Skip to content

Commit afe54b4

Browse files
author
Max Randolph
committed
renamed function to enableCookiePersistence
1 parent 7475cd6 commit afe54b4

File tree

3 files changed

+2501
-6
lines changed

3 files changed

+2501
-6
lines changed

NativeDispatcher.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NativeDispatcher.prototype._initPublicInterface = function() {
1717
publicInterface.abortForAuth = this._abortForAuth.bind(this);
1818
publicInterface.abortWithError = this._abortWithError.bind(this);
1919
publicInterface.addCrossOriginException = this._addCrossOriginException.bind(this);
20-
publicInterface.addSharedCookiesException = this._addSharedCookiesException.bind(this);
20+
publicInterface.enableCookiePersistence = this._enableCookiePersistence.bind(this);
2121
publicInterface.log = this._log.bind(this);
2222
publicInterface.submit = this._submit.bind(this);
2323
publicInterface.reportProgress = this._reportProgress.bind(this);
@@ -37,8 +37,8 @@ NativeDispatcher.prototype._addCrossOriginException = function(destOriginList) {
3737
this.nativeApiRootObj.WDCBridge_Api_addCrossOriginException.api(destOriginList);
3838
}
3939

40-
NativeDispatcher.prototype._addSharedCookiesException = function(urlList) {
41-
this.nativeApiRootObj.WDCBridge_Api_addSharedCookiesException.api(urlList);
40+
NativeDispatcher.prototype._enableCookiePersistence = function() {
41+
this.nativeApiRootObj.WDCBridge_Api_enableCookiePersistence.api();
4242
}
4343

4444
NativeDispatcher.prototype._log = function(msg) {

SimulatorDispatcher.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ SimulatorDispatcher.prototype._initPublicInterface = function() {
239239
publicInterface.abortForAuth = this._abortForAuth.bind(this);
240240
publicInterface.abortWithError = this._abortWithError.bind(this);
241241
publicInterface.addCrossOriginException = this._addCrossOriginException.bind(this);
242-
publicInterface.addSharedCookiesException = this._addSharedCookiesException.bind(this);
242+
publicInterface.enableCookiePersistence = this._enableCookiePersistence.bind(this);
243243
publicInterface.log = this._log.bind(this);
244244
publicInterface.reportProgress = this._reportProgress.bind(this);
245245
publicInterface.submit = this._submit.bind(this);
@@ -265,14 +265,15 @@ SimulatorDispatcher.prototype._addCrossOriginException = function(destOriginList
265265
}.bind(this), 0);
266266
}
267267

268-
SimulatorDispatcher.prototype._addSharedCookiesException = function(destOriginList) {
268+
SimulatorDispatcher.prototype._enableCookiePersistence = function() {
269269
// Don't bother passing this back to the simulator since there's nothing it can
270270
// do. Just call back to the WDC indicating that it worked
271271
console.log("Shared Cookies Exception requested in the simulator. Pretending to work.")
272272
setTimeout(function() {
273-
this.globalObj._wdc.addSharedCookiesExceptionCompleted(destOriginList);
273+
this.globalObj._wdc.enableCookiePersistenceCompleted();
274274
}.bind(this), 0);
275275
}
276+
276277
SimulatorDispatcher.prototype._log = function(msg) {
277278
this._sendMessage("log", {"logMsg": msg});
278279
}

0 commit comments

Comments
 (0)