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

Side by Side Diff: components/device_event_log/device_event_log_impl.cc

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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/device_event_log/device_event_log_impl.h" 5 #include "components/device_event_log/device_event_log_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/containers/adapters.h" 12 #include "base/containers/adapters.h"
13 #include "base/json/json_string_value_serializer.h" 13 #include "base/json/json_string_value_serializer.h"
14 #include "base/json/json_writer.h" 14 #include "base/json/json_writer.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/strings/string_tokenizer.h" 17 #include "base/strings/string_tokenizer.h"
19 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
20 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
21 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
22 #include "base/values.h" 21 #include "base/values.h"
23 22
24 namespace device_event_log { 23 namespace device_event_log {
25 24
26 namespace { 25 namespace {
27 26
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 size_t last_slash_pos = file.find_last_of("\\/"); 394 size_t last_slash_pos = file.find_last_of("\\/");
396 if (last_slash_pos != std::string::npos) { 395 if (last_slash_pos != std::string::npos) {
397 file.erase(0, last_slash_pos + 1); 396 file.erase(0, last_slash_pos + 1);
398 } 397 }
399 } 398 }
400 } 399 }
401 400
402 DeviceEventLogImpl::LogEntry::LogEntry(const LogEntry& other) = default; 401 DeviceEventLogImpl::LogEntry::LogEntry(const LogEntry& other) = default;
403 402
404 } // namespace device_event_log 403 } // namespace device_event_log
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698