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

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

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.cc
diff --git a/chrome/browser/ui/app_list/speech_auth_helper.cc b/chrome/browser/ui/app_list/speech_auth_helper.cc
index 2f251fd2819d4ea34e9e298cf857180168596212..63a3e8fbad32c9adebdd396b40fbf13d96153fcc 100644
--- a/chrome/browser/ui/app_list/speech_auth_helper.cc
+++ b/chrome/browser/ui/app_list/speech_auth_helper.cc
@@ -8,7 +8,6 @@
#include "base/bind.h"
#include "base/time/clock.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
@@ -24,7 +23,6 @@ static const int kMinTokenRefreshDelaySeconds = 300; // 5 minutes
SpeechAuthHelper::SpeechAuthHelper(Profile* profile, base::Clock* clock)
: OAuth2TokenService::Consumer(kAuthScope),
- profile_(profile),
clock_(clock),
token_service_(ProfileOAuth2TokenServiceFactory::GetForProfile(profile)),
weak_factory_(this) {
@@ -114,12 +112,12 @@ void SpeechAuthHelper::FetchAuthToken() {
this);
}
-std::string SpeechAuthHelper::GetToken() {
+std::string SpeechAuthHelper::GetToken() const {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
return auth_token_;
}
-std::string SpeechAuthHelper::GetScope() {
+std::string SpeechAuthHelper::GetScope() const {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
return kAuthScope;
}
« no previous file with comments | « chrome/browser/ui/app_list/speech_auth_helper.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698