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

Unified 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: Removed data_unittest.py Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: services/authentication/dummy_authentication_app.cc
diff --git a/services/authentication/dummy_authentication_app.cc b/services/authentication/dummy_authentication_app.cc
deleted file mode 100644
index a829b74e936c1cba0f7543b8e5fe3142d9905917..0000000000000000000000000000000000000000
--- a/services/authentication/dummy_authentication_app.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <memory>
-
-#include "mojo/common/binding_set.h"
-#include "mojo/public/c/system/main.h"
-#include "mojo/public/cpp/application/application_connection.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/application_runner.h"
-#include "mojo/public/cpp/application/interface_factory.h"
-#include "mojo/public/cpp/system/macros.h"
-#include "mojo/services/authentication/interfaces/authentication.mojom.h"
-
-namespace authentication {
-namespace {
-
-class DummyAuthenticationApplication
- : public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<AuthenticationService>,
- public AuthenticationService {
- public:
- DummyAuthenticationApplication() {}
- ~DummyAuthenticationApplication() override {}
-
- private:
- // ApplicationDelegate implementation.
- void Initialize(mojo::ApplicationImpl* app) override{};
- bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
- connection->AddService<AuthenticationService>(this);
- return true;
- }
-
- // InterfaceFactory<AuthenticationService> implementation.
- void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<AuthenticationService> request) override {
- bindings_.AddBinding(this, request.Pass());
- }
-
- // AuthenticationService implementation
- void SelectAccount(bool return_last_selected,
- const SelectAccountCallback& callback) override {
- callback.Run(nullptr, "Not implemented");
- }
- void GetOAuth2Token(const mojo::String& username,
- mojo::Array<mojo::String> scopes,
- const GetOAuth2TokenCallback& callback) override {
- callback.Run(nullptr, "Not implemented");
- }
- void ClearOAuth2Token(const mojo::String& token) override {}
-
- mojo::BindingSet<AuthenticationService> bindings_;
-};
-
-} // namespace
-} // namespace authentication
-
-MojoResult MojoMain(MojoHandle application_request) {
- mojo::ApplicationRunner runner(
- std::unique_ptr<authentication::DummyAuthenticationApplication>(
- new authentication::DummyAuthenticationApplication()));
- return runner.Run(application_request);
-}
« no previous file with comments | « services/authentication/credentials_impl_db.mojom ('k') | services/authentication/google_authentication_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698