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

Side by Side Diff: components/signin/core/browser/gaia_cookie_manager_service.cc

Issue 1223153003: Move JoinString to the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: windows Created 5 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 5 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 CleanupTransientState(); 107 CleanupTransientState();
108 } 108 }
109 109
110 std::string 110 std::string
111 GaiaCookieManagerService::ExternalCcResultFetcher::GetExternalCcResult() { 111 GaiaCookieManagerService::ExternalCcResultFetcher::GetExternalCcResult() {
112 std::vector<std::string> results; 112 std::vector<std::string> results;
113 for (ResultMap::const_iterator it = results_.begin(); it != results_.end(); 113 for (ResultMap::const_iterator it = results_.begin(); it != results_.end();
114 ++it) { 114 ++it) {
115 results.push_back(it->first + ":" + it->second); 115 results.push_back(it->first + ":" + it->second);
116 } 116 }
117 return JoinString(results, ","); 117 return base::JoinString(results, ",");
118 } 118 }
119 119
120 void GaiaCookieManagerService::ExternalCcResultFetcher::Start() { 120 void GaiaCookieManagerService::ExternalCcResultFetcher::Start() {
121 m_external_cc_result_start_time_ = base::Time::Now(); 121 m_external_cc_result_start_time_ = base::Time::Now();
122 122
123 CleanupTransientState(); 123 CleanupTransientState();
124 results_.clear(); 124 results_.clear();
125 helper_->gaia_auth_fetcher_.reset( 125 helper_->gaia_auth_fetcher_.reset(
126 helper_->signin_client_->CreateGaiaAuthFetcher( 126 helper_->signin_client_->CreateGaiaAuthFetcher(
127 this, helper_->source_, helper_->request_context())); 127 this, helper_->source_, helper_->request_context()));
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 break; 705 break;
706 case GaiaCookieRequestType::LIST_ACCOUNTS: 706 case GaiaCookieRequestType::LIST_ACCOUNTS:
707 uber_token_fetcher_.reset(); 707 uber_token_fetcher_.reset();
708 signin_client_->DelayNetworkCall( 708 signin_client_->DelayNetworkCall(
709 base::Bind(&GaiaCookieManagerService::StartFetchingListAccounts, 709 base::Bind(&GaiaCookieManagerService::StartFetchingListAccounts,
710 base::Unretained(this))); 710 base::Unretained(this)));
711 break; 711 break;
712 }; 712 };
713 } 713 }
714 } 714 }
OLDNEW
« no previous file with comments | « components/search_engines/template_url_service_sync_unittest.cc ('k') | components/translate/core/browser/translate_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698