Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1198)

Delta Between Two Patch Sets: Src/GoogleApis.Auth.WP/OAuth2/WebAuthenticationBrokerUserControl.xaml.cs

Issue 94340043: Issue 463: Provide a signout\logout method (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: minor Created 9 years, 10 months ago
Right Patch Set: Gus' comments Created 9 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 Copyright 2013 Google Inc 2 Copyright 2013 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 tcsAuthorizationCodeResponse.SetResult(new AuthorizationCodeResp onseUrl(query)); 64 tcsAuthorizationCodeResponse.SetResult(new AuthorizationCodeResp onseUrl(query));
65 } 65 }
66 } 66 }
67 67
68 /// <summary>Callback of browser navigation failed.</summary> 68 /// <summary>Callback of browser navigation failed.</summary>
69 private void OnBrowserNavigationFailed(object sender, NavigationFailedEv entArgs e) 69 private void OnBrowserNavigationFailed(object sender, NavigationFailedEv entArgs e)
70 { 70 {
71 if (!tcsAuthorizationCodeResponse.Task.IsCompleted) 71 if (!tcsAuthorizationCodeResponse.Task.IsCompleted)
72 { 72 {
73 // See https://code.google.com/p/google-api-dotnet-client/issues /detail?id=431. 73 // See https://code.google.com/p/google-api-dotnet-client/issues /detail?id=431.
74 // If we encounter a null exception, cancel the task because the WP app crashed. 74 // If we encounter a null exception, cancel the task because the Windows Phone app crashed.
75 if (e.Exception != null) 75 if (e.Exception != null)
76 { 76 {
77 tcsAuthorizationCodeResponse.SetException(e.Exception); 77 tcsAuthorizationCodeResponse.SetException(e.Exception);
78 } 78 }
79 else 79 else
80 { 80 {
81 tcsAuthorizationCodeResponse.SetCanceled(); 81 tcsAuthorizationCodeResponse.SetCanceled();
82 } 82 }
83 } 83 }
84 } 84 }
(...skipping 28 matching lines...) Expand all
113 113
114 if (!tcsAuthorizationCodeResponse.Task.IsCompleted && 114 if (!tcsAuthorizationCodeResponse.Task.IsCompleted &&
115 !tcsAuthorizationCodeResponse.Task.IsCanceled) 115 !tcsAuthorizationCodeResponse.Task.IsCanceled)
116 { 116 {
117 e.Cancel = true; 117 e.Cancel = true;
118 tcsAuthorizationCodeResponse.SetCanceled(); 118 tcsAuthorizationCodeResponse.SetCanceled();
119 } 119 }
120 } 120 }
121 } 121 }
122 } 122 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b