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

Unified Diff: remoting/base/auth_token_util.cc

Issue 959033004: Remove ClientLogin support from remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « remoting/base/auth_token_util.h ('k') | remoting/base/auth_token_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auth_token_util.cc
diff --git a/remoting/base/auth_token_util.cc b/remoting/base/auth_token_util.cc
deleted file mode 100644
index 45caa92cd5d72e401bdd7908a76b527a155db813..0000000000000000000000000000000000000000
--- a/remoting/base/auth_token_util.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "remoting/base/auth_token_util.h"
-#include "remoting/base/constants.h"
-
-namespace remoting {
-
-void ParseAuthTokenWithService(const std::string& auth_service_with_token,
- std::string* auth_token,
- std::string* auth_service) {
- size_t delimiter_pos = auth_service_with_token.find(':');
- if (delimiter_pos == std::string::npos) {
- // Legacy case: there is no delimiter. Assume the whole string is the
- // auth_token, and that we're using the default service.
- //
- // TODO(ajwong): Remove this defaulting once all webclients are migrated.
- // BUG:83897
- auth_token->assign(auth_service_with_token);
- auth_service->assign(kChromotingTokenDefaultServiceName);
- } else {
- auth_service->assign(auth_service_with_token.substr(0, delimiter_pos));
-
- // Make sure there is *something* after the delimiter before doing substr.
- if (delimiter_pos < auth_service_with_token.size()) {
- auth_token->assign(auth_service_with_token.substr(delimiter_pos + 1));
- } else {
- auth_token->clear();
- }
- }
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/base/auth_token_util.h ('k') | remoting/base/auth_token_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698