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

Side by Side Diff: services/authentication/dummy_authentication_app.cc

Issue 1466733002: Google OAuth Device Flow support for FNL (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Addressed review comments Created 4 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
qsr 2016/01/13 12:01:00 I think this file is not used anymore.
ukode 2016/02/09 00:20:18 Acknowledged. Removed it.
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 <memory> 5 #include <memory>
6 6
7 #include "mojo/common/binding_set.h" 7 #include "mojo/common/binding_set.h"
8 #include "mojo/public/c/system/main.h" 8 #include "mojo/public/c/system/main.h"
9 #include "mojo/public/cpp/application/application_connection.h" 9 #include "mojo/public/cpp/application/application_connection.h"
10 #include "mojo/public/cpp/application/application_delegate.h" 10 #include "mojo/public/cpp/application/application_delegate.h"
11 #include "mojo/public/cpp/application/application_runner.h" 11 #include "mojo/public/cpp/application/application_runner.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const SelectAccountCallback& callback) override { 44 const SelectAccountCallback& callback) override {
45 callback.Run(nullptr, "Not implemented"); 45 callback.Run(nullptr, "Not implemented");
46 } 46 }
47 void GetOAuth2Token(const mojo::String& username, 47 void GetOAuth2Token(const mojo::String& username,
48 mojo::Array<mojo::String> scopes, 48 mojo::Array<mojo::String> scopes,
49 const GetOAuth2TokenCallback& callback) override { 49 const GetOAuth2TokenCallback& callback) override {
50 callback.Run(nullptr, "Not implemented"); 50 callback.Run(nullptr, "Not implemented");
51 } 51 }
52 void ClearOAuth2Token(const mojo::String& token) override {} 52 void ClearOAuth2Token(const mojo::String& token) override {}
53 53
54 void GetOAuth2DeviceCode(mojo::Array<mojo::String> scopes,
55 const GetOAuth2TokenCallback& callback) override {
56 callback.Run(nullptr, "Not implemented");
57 }
58
59 void AddAccount(const mojo::String& device_code) override {}
60
54 mojo::BindingSet<AuthenticationService> bindings_; 61 mojo::BindingSet<AuthenticationService> bindings_;
55 }; 62 };
56 63
57 } // namespace 64 } // namespace
58 } // namespace authentication 65 } // namespace authentication
59 66
60 MojoResult MojoMain(MojoHandle application_request) { 67 MojoResult MojoMain(MojoHandle application_request) {
61 mojo::ApplicationRunner runner( 68 mojo::ApplicationRunner runner(
62 std::unique_ptr<authentication::DummyAuthenticationApplication>( 69 std::unique_ptr<authentication::DummyAuthenticationApplication>(
63 new authentication::DummyAuthenticationApplication())); 70 new authentication::DummyAuthenticationApplication()));
64 return runner.Run(application_request); 71 return runner.Run(application_request);
65 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698