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

Unified Diff: sql/connection.h

Issue 1851913002: Convert //sql to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup in precache_url_table_unittest.cc 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/precache/core/precache_url_table_unittest.cc ('k') | sql/connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.h
diff --git a/sql/connection.h b/sql/connection.h
index 4606a1f357c3ae00c0aee789af5dc91487294d99..cebf93b1300c3cbd13ae5a6ac9d92aa3a6c4d6e5 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
#include <map>
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -17,7 +18,6 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "sql/sql_export.h"
@@ -792,10 +792,10 @@ class SQL_EXPORT Connection {
// Source for timing information, provided to allow tests to inject time
// changes.
- scoped_ptr<TimeSource> clock_;
+ std::unique_ptr<TimeSource> clock_;
// Stores the dump provider object when db is open.
- scoped_ptr<ConnectionMemoryDumpProvider> memory_dump_provider_;
+ std::unique_ptr<ConnectionMemoryDumpProvider> memory_dump_provider_;
DISALLOW_COPY_AND_ASSIGN(Connection);
};
« no previous file with comments | « components/precache/core/precache_url_table_unittest.cc ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698