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

Side by Side Diff: chrome/browser/ui/webui/quota_internals/quota_internals_types.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/webui/quota_internals/quota_internals_types.h" 5 #include "chrome/browser/ui/webui/quota_internals/quota_internals_types.h"
6 6
7 #include <memory>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 10 #include "base/values.h"
10 #include "net/base/url_util.h" 11 #include "net/base/url_util.h"
11 12
12 namespace { 13 namespace {
13 14
14 std::string StorageTypeToString(storage::StorageType type) { 15 std::string StorageTypeToString(storage::StorageType type) {
15 switch (type) { 16 switch (type) {
16 case storage::kStorageTypeTemporary: 17 case storage::kStorageTypeTemporary:
17 return "temporary"; 18 return "temporary";
18 case storage::kStorageTypePersistent: 19 case storage::kStorageTypePersistent:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if (!last_access_time_.is_null()) 99 if (!last_access_time_.is_null())
99 dict->SetDouble("lastAccessTime", last_access_time_.ToDoubleT() * 1000.0); 100 dict->SetDouble("lastAccessTime", last_access_time_.ToDoubleT() * 1000.0);
100 if (!last_modified_time_.is_null()) { 101 if (!last_modified_time_.is_null()) {
101 dict->SetDouble("lastModifiedTime", 102 dict->SetDouble("lastModifiedTime",
102 last_modified_time_.ToDoubleT() * 1000.0); 103 last_modified_time_.ToDoubleT() * 1000.0);
103 } 104 }
104 return dict; 105 return dict;
105 } 106 }
106 107
107 } // namespace quota_internals 108 } // namespace quota_internals
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698