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

Unified Diff: chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.h

Issue 2712483002: cros: Remove AuthenticatedUserEmailRetriever. (Closed)
Patch Set: Initial upload Created 3 years, 10 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: chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.h
diff --git a/chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.h b/chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.h
deleted file mode 100644
index 910f4963560a51801be86a994738af7d749a83a6..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_AUTHENTICATED_USER_EMAIL_RETRIEVER_H_
-#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_AUTHENTICATED_USER_EMAIL_RETRIEVER_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "google_apis/gaia/gaia_auth_consumer.h"
-#include "google_apis/gaia/gaia_auth_fetcher.h"
-
-class GaiaAuthFetcher;
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-namespace chromeos {
-
-// Helper class that retrieves the authenticated user's e-mail address.
-class AuthenticatedUserEmailRetriever : public GaiaAuthConsumer {
- public:
- typedef base::Callback<void(const std::string&)>
- AuthenticatedUserEmailCallback;
-
- // Retrieves the authenticated user's e-mail address from GAIA and passes it
- // to |callback|. Requires that |url_request_context_getter| contain the GAIA
- // cookies for exactly one user. If the e-mail address cannot be retrieved, an
- // empty string is passed to the |callback|.
- AuthenticatedUserEmailRetriever(
- const AuthenticatedUserEmailCallback& callback,
- scoped_refptr<net::URLRequestContextGetter> url_request_context_getter);
- ~AuthenticatedUserEmailRetriever() override;
-
- // GaiaAuthConsumer:
- void OnListAccountsSuccess(const std::string& data) override;
- void OnListAccountsFailure(const GoogleServiceAuthError& error) override;
-
- private:
- const AuthenticatedUserEmailCallback callback_;
- GaiaAuthFetcher gaia_auth_fetcher_;
-
- DISALLOW_COPY_AND_ASSIGN(AuthenticatedUserEmailRetriever);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_AUTHENTICATED_USER_EMAIL_RETRIEVER_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/chromeos/login/authenticated_user_email_retriever.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698