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

Side by Side Diff: components/test_runner/mock_credential_manager_client.cc

Issue 1215653003: Remove the notifyFailedSignedIn callback from Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: components_browsertests Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « components/test_runner/mock_credential_manager_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/test_runner/mock_credential_manager_client.h" 5 #include "components/test_runner/mock_credential_manager_client.h"
6 6
7 #include "third_party/WebKit/public/platform/WebCredential.h" 7 #include "third_party/WebKit/public/platform/WebCredential.h"
8 8
9 namespace test_runner { 9 namespace test_runner {
10 10
11 MockCredentialManagerClient::MockCredentialManagerClient() { 11 MockCredentialManagerClient::MockCredentialManagerClient() {
12 } 12 }
13 13
14 MockCredentialManagerClient::~MockCredentialManagerClient() { 14 MockCredentialManagerClient::~MockCredentialManagerClient() {
15 } 15 }
16 16
17 void MockCredentialManagerClient::SetResponse( 17 void MockCredentialManagerClient::SetResponse(
18 blink::WebCredential* credential) { 18 blink::WebCredential* credential) {
19 credential_.reset(credential); 19 credential_.reset(credential);
20 } 20 }
21 21
22 void MockCredentialManagerClient::dispatchFailedSignIn(
23 const blink::WebCredential&,
24 blink::WebCredentialManagerClient::NotificationCallbacks* callbacks) {
25 callbacks->onSuccess();
26 delete callbacks;
27 }
28
29 void MockCredentialManagerClient::dispatchSignedIn( 22 void MockCredentialManagerClient::dispatchSignedIn(
30 const blink::WebCredential&, 23 const blink::WebCredential&,
31 blink::WebCredentialManagerClient::NotificationCallbacks* callbacks) { 24 blink::WebCredentialManagerClient::NotificationCallbacks* callbacks) {
32 callbacks->onSuccess(); 25 callbacks->onSuccess();
33 delete callbacks; 26 delete callbacks;
34 } 27 }
35 28
36 void MockCredentialManagerClient::dispatchRequireUserMediation( 29 void MockCredentialManagerClient::dispatchRequireUserMediation(
37 NotificationCallbacks* callbacks) { 30 NotificationCallbacks* callbacks) {
38 callbacks->onSuccess(); 31 callbacks->onSuccess();
39 delete callbacks; 32 delete callbacks;
40 } 33 }
41 34
42 void MockCredentialManagerClient::dispatchRequest( 35 void MockCredentialManagerClient::dispatchRequest(
43 bool zeroClickOnly, 36 bool zeroClickOnly,
44 const blink::WebVector<blink::WebURL>& federations, 37 const blink::WebVector<blink::WebURL>& federations,
45 RequestCallbacks* callbacks) { 38 RequestCallbacks* callbacks) {
46 callbacks->onSuccess(credential_.get()); 39 callbacks->onSuccess(credential_.get());
47 delete callbacks; 40 delete callbacks;
48 } 41 }
49 42
50 } // namespace test_runner 43 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/mock_credential_manager_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698