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

Unified Diff: chrome/browser/ui/app_list/speech_auth_helper.h

Issue 1053663003: Cleanup: Remove unused variables in chrome/ found by Scythe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/browser/ui/app_list/speech_auth_helper.h
diff --git a/chrome/browser/ui/app_list/speech_auth_helper.h b/chrome/browser/ui/app_list/speech_auth_helper.h
index 01122f67d447cb3c5ab5a0d15f8052f43ea3233b..d5b9094a125faa6a0e4f6ab98bf096db541e56f3 100644
--- a/chrome/browser/ui/app_list/speech_auth_helper.h
+++ b/chrome/browser/ui/app_list/speech_auth_helper.h
@@ -26,15 +26,15 @@ namespace app_list {
class SpeechAuthHelper : public OAuth2TokenService::Consumer,
public OAuth2TokenService::Observer {
public:
- explicit SpeechAuthHelper(Profile* profile, base::Clock* clock);
+ SpeechAuthHelper(Profile* profile, base::Clock* clock);
~SpeechAuthHelper() override;
// Returns the current auth token. If the auth service is not available, or
// there was a failure in obtaining a token, return the empty string.
- std::string GetToken();
+ std::string GetToken() const;
// Returns the OAuth scope associated with the auth token.
- std::string GetScope();
+ std::string GetScope() const;
private:
// Overridden from OAuth2TokenService::Consumer:
@@ -50,7 +50,6 @@ class SpeechAuthHelper : public OAuth2TokenService::Consumer,
void ScheduleTokenFetch(const base::TimeDelta& fetch_delay);
void FetchAuthToken();
- Profile* profile_;
base::Clock* clock_;
ProfileOAuth2TokenService* token_service_;
std::string authenticated_account_id_;

Powered by Google App Engine
This is Rietveld 408576698