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

Side by Side Diff: components/sync/device_info/device_info_service.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/device_info/device_info_service.h" 5 #include "components/sync/device_info/device_info_service.h"
6 6
7 #include <algorithm>
7 #include <set> 8 #include <set>
8 #include <utility> 9 #include <utility>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/location.h" 12 #include "base/location.h"
12 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
13 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
14 #include "components/sync/api/entity_change.h" 15 #include "components/sync/api/entity_change.h"
15 #include "components/sync/api/metadata_batch.h" 16 #include "components/sync/api/metadata_batch.h"
16 #include "components/sync/api/sync_error.h" 17 #include "components/sync/api/sync_error.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 Time DeviceInfoService::GetLastUpdateTime( 515 Time DeviceInfoService::GetLastUpdateTime(
515 const DeviceInfoSpecifics& specifics) { 516 const DeviceInfoSpecifics& specifics) {
516 if (specifics.has_last_updated_timestamp()) { 517 if (specifics.has_last_updated_timestamp()) {
517 return ProtoTimeToTime(specifics.last_updated_timestamp()); 518 return ProtoTimeToTime(specifics.last_updated_timestamp());
518 } else { 519 } else {
519 return Time(); 520 return Time();
520 } 521 }
521 } 522 }
522 523
523 } // namespace syncer 524 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info.h ('k') | components/sync/device_info/device_info_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698