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

Unified Diff: blimp/common/get_client_auth_token.cc

Issue 2281783002: Changes client_token to be client_auth_token. (Closed)
Patch Set: Linting. Created 4 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
« no previous file with comments | « blimp/common/get_client_auth_token.h ('k') | blimp/common/get_client_token.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/get_client_auth_token.cc
diff --git a/blimp/common/get_client_token.cc b/blimp/common/get_client_auth_token.cc
similarity index 76%
rename from blimp/common/get_client_token.cc
rename to blimp/common/get_client_auth_token.cc
index 025bf191fe9201a23f892502dfbc7589c76e202b..5d06d83488edb19267de00a857e7ff207d219dc4 100644
--- a/blimp/common/get_client_token.cc
+++ b/blimp/common/get_client_auth_token.cc
@@ -2,19 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "blimp/common/get_client_auth_token.h"
+
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/strings/string_util.h"
-#include "blimp/common/get_client_token.h"
#include "blimp/common/switches.h"
namespace blimp {
-std::string GetClientToken(const base::CommandLine& cmd_line) {
+std::string GetClientAuthToken(const base::CommandLine& cmd_line) {
std::string file_contents;
- const base::FilePath path = cmd_line.GetSwitchValuePath(kClientTokenPath);
+ const base::FilePath path = cmd_line.GetSwitchValuePath(kClientAuthTokenPath);
if (!base::ReadFileToString(path, &file_contents)) {
- LOG(ERROR) << "Could not read client token file at "
+ LOG(ERROR) << "Could not read client auth token file at "
<< (path.empty() ? "(not provided)" : path.AsUTF8Unsafe());
}
return base::CollapseWhitespaceASCII(file_contents, true);
« no previous file with comments | « blimp/common/get_client_auth_token.h ('k') | blimp/common/get_client_token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698