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

Unified Diff: components/resource_provider/resource_provider_test_app.cc

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/resource_provider/public/cpp/resource_loader.cc ('k') | components/rlz/rlz_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/resource_provider/resource_provider_test_app.cc
diff --git a/components/resource_provider/resource_provider_test_app.cc b/components/resource_provider/resource_provider_test_app.cc
index 8cab63f8abddcaee584e1cd3de0407a6a80ca373..cab29deee038da54c055aff27b75b19400bf0909 100644
--- a/components/resource_provider/resource_provider_test_app.cc
+++ b/components/resource_provider/resource_provider_test_app.cc
@@ -23,7 +23,7 @@ namespace test {
std::string ReadFile(base::File* file) {
const size_t kBufferSize = 1 << 16;
- scoped_ptr<char[]> buffer(new char[kBufferSize]);
+ std::unique_ptr<char[]> buffer(new char[kBufferSize]);
const int read = file->ReadAtCurrentPos(buffer.get(), kBufferSize);
if (read == -1)
return std::string();
@@ -108,7 +108,7 @@ class TestApp : public shell::ShellClient,
}
private:
- scoped_ptr<Test> test_;
+ std::unique_ptr<Test> test_;
mojo::BindingSet<test::mojom::Test> bindings_;
DISALLOW_COPY_AND_ASSIGN(TestApp);
« no previous file with comments | « components/resource_provider/public/cpp/resource_loader.cc ('k') | components/rlz/rlz_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698