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

Side by Side Diff: blimp/common/get_client_auth_token.cc

Issue 2626423004: Remove all //blimp code. (Closed)
Patch Set: One last(?) `git merge` for good measure. Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « blimp/common/get_client_auth_token.h ('k') | blimp/common/logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "blimp/common/get_client_auth_token.h"
6
7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h"
9 #include "base/strings/string_util.h"
10 #include "blimp/common/switches.h"
11
12 namespace blimp {
13
14 std::string GetClientAuthToken(const base::CommandLine& cmd_line) {
15 std::string file_contents;
16 const base::FilePath path = cmd_line.GetSwitchValuePath(kClientAuthTokenPath);
17 if (!base::ReadFileToString(path, &file_contents)) {
18 LOG(ERROR) << "Could not read client auth token file at "
19 << (path.empty() ? "(not provided)" : path.AsUTF8Unsafe());
20 }
21 return base::CollapseWhitespaceASCII(file_contents, true);
22 }
23
24 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/common/get_client_auth_token.h ('k') | blimp/common/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698