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

Side by Side Diff: components/sync/engine_impl/attachments/attachment_downloader_impl.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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/sync/engine_impl/attachments/attachment_downloader_impl.h" 5 #include "components/sync/engine_impl/attachments/attachment_downloader_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 AttachmentUploaderImpl::ConfigureURLFetcherCommon( 218 AttachmentUploaderImpl::ConfigureURLFetcherCommon(
219 url_fetcher.get(), access_token, raw_store_birthday_, model_type_, 219 url_fetcher.get(), access_token, raw_store_birthday_, model_type_,
220 url_request_context_getter_.get()); 220 url_request_context_getter_.get());
221 return url_fetcher; 221 return url_fetcher;
222 } 222 }
223 223
224 void AttachmentDownloaderImpl::RequestAccessToken( 224 void AttachmentDownloaderImpl::RequestAccessToken(
225 DownloadState* download_state) { 225 DownloadState* download_state) {
226 requests_waiting_for_access_token_.push_back(download_state); 226 requests_waiting_for_access_token_.push_back(download_state);
227 // Start access token request if there is no active one. 227 // Start access token request if there is no active one.
228 if (access_token_request_ == NULL) { 228 if (access_token_request_ == nullptr) {
229 access_token_request_ = OAuth2TokenServiceRequest::CreateAndStart( 229 access_token_request_ = OAuth2TokenServiceRequest::CreateAndStart(
230 token_service_provider_.get(), account_id_, oauth2_scopes_, this); 230 token_service_provider_.get(), account_id_, oauth2_scopes_, this);
231 } 231 }
232 } 232 }
233 233
234 void AttachmentDownloaderImpl::ReportResult( 234 void AttachmentDownloaderImpl::ReportResult(
235 const DownloadState& download_state, 235 const DownloadState& download_state,
236 const DownloadResult& result, 236 const DownloadResult& result,
237 const scoped_refptr<base::RefCountedString>& attachment_data) { 237 const scoped_refptr<base::RefCountedString>& attachment_data) {
238 std::vector<DownloadCallback>::const_iterator iter; 238 std::vector<DownloadCallback>::const_iterator iter;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 if (crc32c_raw.size() != sizeof(*crc32c)) 284 if (crc32c_raw.size() != sizeof(*crc32c))
285 return false; 285 return false;
286 286
287 *crc32c = 287 *crc32c =
288 base::NetToHost32(*reinterpret_cast<const uint32_t*>(crc32c_raw.c_str())); 288 base::NetToHost32(*reinterpret_cast<const uint32_t*>(crc32c_raw.c_str()));
289 return true; 289 return true;
290 } 290 }
291 291
292 } // namespace syncer 292 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/apply_control_data_updates_unittest.cc ('k') | components/sync/engine_impl/commit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698