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

Unified Diff: chrome/browser/net/gaia/token_service.cc

Issue 3473006: Fix a bunch of clang warnings/errors. (Closed)
Patch Set: Created 10 years, 3 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/net/gaia/token_service.cc
diff --git a/chrome/browser/net/gaia/token_service.cc b/chrome/browser/net/gaia/token_service.cc
index 1bf202a56e88ea9873aa072277fa898488f7413e..0f2b1ac66f74559a7fc1321edd9e5ab4870f229f 100644
--- a/chrome/browser/net/gaia/token_service.cc
+++ b/chrome/browser/net/gaia/token_service.cc
@@ -110,11 +110,11 @@ void TokenService::EraseTokensFromDB() {
web_data_service_->RemoveAllTokens();
}
-const bool TokenService::AreCredentialsValid() const {
+bool TokenService::AreCredentialsValid() const {
return !credentials_.lsid.empty() && !credentials_.sid.empty();
}
-const bool TokenService::HasLsid() const {
+bool TokenService::HasLsid() const {
return !credentials_.lsid.empty();
}
@@ -134,7 +134,7 @@ void TokenService::StartFetchingTokens() {
// Services dependent on a token will check if a token is available.
// If it isn't, they'll go to sleep until they get a token event.
-const bool TokenService::HasTokenForService(const char* const service) const {
+bool TokenService::HasTokenForService(const char* const service) const {
return token_map_.count(service) > 0;
}

Powered by Google App Engine
This is Rietveld 408576698