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

Unified Diff: chrome/browser/extensions/api/copresence/copresence_api.cc

Issue 1507893005: Remove const qualifier from function return type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/extensions/api/copresence/copresence_api.cc
diff --git a/chrome/browser/extensions/api/copresence/copresence_api.cc b/chrome/browser/extensions/api/copresence/copresence_api.cc
index 9324c3f0dffe94e6c28adee4cb68fdb5c7b9eb9f..97fde000cec212f092333b8c29efa0bc2a0ad288 100644
--- a/chrome/browser/extensions/api/copresence/copresence_api.cc
+++ b/chrome/browser/extensions/api/copresence/copresence_api.cc
@@ -71,7 +71,7 @@ copresence::CopresenceManager* CopresenceService::manager() {
return manager_.get();
}
-const std::string CopresenceService::auth_token(const std::string& app_id)
+std::string CopresenceService::auth_token(const std::string& app_id)
const {
// This won't be const if we use map[]
const auto& key = auth_tokens_by_app_.find(app_id);
@@ -172,11 +172,11 @@ net::URLRequestContextGetter* CopresenceService::GetRequestContext() const {
return browser_context_->GetRequestContext();
}
-const std::string CopresenceService::GetPlatformVersionString() const {
+std::string CopresenceService::GetPlatformVersionString() const {
return chrome::GetVersionString();
}
-const std::string
+std::string
CopresenceService::GetAPIKey(const std::string& app_id) const {
// Check first if the app has set its key via the API.
const auto& key = api_keys_by_app_.find(app_id);
@@ -210,7 +210,7 @@ gcm::GCMDriver* CopresenceService::GetGCMDriver() {
return gcm_service ? gcm_service->driver() : nullptr;
}
-const std::string CopresenceService::GetDeviceId(bool authenticated) {
+std::string CopresenceService::GetDeviceId(bool authenticated) {
std::string id = GetPrefService()->GetString(GetPrefName(authenticated));
DVLOG(3) << "Retrieved device ID \"" << id << "\", "
<< "authenticated = " << authenticated;
« no previous file with comments | « chrome/browser/extensions/api/copresence/copresence_api.h ('k') | components/copresence/public/copresence_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698