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

Unified Diff: blimp/common/get_client_auth_token.h

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/create_blimp_message_unittest.cc ('k') | blimp/common/get_client_auth_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/get_client_auth_token.h
diff --git a/blimp/common/get_client_auth_token.h b/blimp/common/get_client_auth_token.h
new file mode 100644
index 0000000000000000000000000000000000000000..c72045cd961c2290254770cbda18c2d60b4cbdd9
--- /dev/null
+++ b/blimp/common/get_client_auth_token.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_COMMON_GET_CLIENT_AUTH_TOKEN_H_
+#define BLIMP_COMMON_GET_CLIENT_AUTH_TOKEN_H_
+
+#include <string>
+
+#include "base/command_line.h"
+#include "blimp/common/blimp_common_export.h"
+
+namespace blimp {
+
+// Gets the client auth token from the file provided by the command line. If
+// a read does not succeed, or the switch is malformed, an empty string
+// is returned.
+BLIMP_COMMON_EXPORT std::string GetClientAuthToken(
+ const base::CommandLine& cmd_line);
+
+} // namespace blimp
+
+#endif // BLIMP_COMMON_GET_CLIENT_AUTH_TOKEN_H_
« no previous file with comments | « blimp/common/create_blimp_message_unittest.cc ('k') | blimp/common/get_client_auth_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698