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

Side by Side Diff: sync/internal_api/attachments/attachment_uploader_impl.cc

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 "sync/internal_api/public/attachments/attachment_uploader_impl.h" 5 #include "sync/internal_api/public/attachments/attachment_uploader_impl.h"
6 6
7 #include <stdint.h>
8
7 #include <string> 9 #include <string>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/base64.h" 12 #include "base/base64.h"
11 #include "base/base64url.h" 13 #include "base/base64url.h"
12 #include "base/bind.h" 14 #include "base/bind.h"
13 #include "base/macros.h" 15 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
16 #include "base/metrics/sparse_histogram.h" 18 #include "base/metrics/sparse_histogram.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 "%s: %s", kSyncStoreBirthday, encoded_store_birthday.c_str())); 393 "%s: %s", kSyncStoreBirthday, encoded_store_birthday.c_str()));
392 394
393 // Use field number to pass ModelType because it's stable and we have server 395 // Use field number to pass ModelType because it's stable and we have server
394 // code to decode it. 396 // code to decode it.
395 const int field_number = GetSpecificsFieldNumberFromModelType(model_type); 397 const int field_number = GetSpecificsFieldNumberFromModelType(model_type);
396 fetcher->AddExtraRequestHeader( 398 fetcher->AddExtraRequestHeader(
397 base::StringPrintf("%s: %d", kSyncDataTypeId, field_number)); 399 base::StringPrintf("%s: %d", kSyncDataTypeId, field_number));
398 } 400 }
399 401
400 } // namespace syncer 402 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/attachments/attachment_service_impl_unittest.cc ('k') | sync/internal_api/attachments/attachment_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698