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

Unified Diff: content/public/test/mock_render_process_host.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 | « content/public/test/mock_download_manager.cc ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_render_process_host.h
diff --git a/content/public/test/mock_render_process_host.h b/content/public/test/mock_render_process_host.h
index ef8e1f53653242bd88469bcb4b1d821b7df29fd7..44135bb03b6eb056580640307916c671be6d704e 100644
--- a/content/public/test/mock_render_process_host.h
+++ b/content/public/test/mock_render_process_host.h
@@ -94,7 +94,7 @@ class MockRenderProcessHost : public RenderProcessHost {
void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
void NotifyTimezoneChange(const std::string& zone_id) override;
ServiceRegistry* GetServiceRegistry() override;
- scoped_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator()
+ std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator()
override;
const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
bool SubscribeUniformEnabled() const override;
@@ -131,7 +131,7 @@ class MockRenderProcessHost : public RenderProcessHost {
is_process_backgrounded_ = is_process_backgrounded;
}
- void SetProcessHandle(scoped_ptr<base::ProcessHandle> new_handle) {
+ void SetProcessHandle(std::unique_ptr<base::ProcessHandle> new_handle) {
process_handle = std::move(new_handle);
}
@@ -140,7 +140,7 @@ class MockRenderProcessHost : public RenderProcessHost {
int worker_ref_count() const { return worker_ref_count_; }
- void SetServiceRegistry(scoped_ptr<ServiceRegistry> service_registry) {
+ void SetServiceRegistry(std::unique_ptr<ServiceRegistry> service_registry) {
service_registry_ = std::move(service_registry);
}
@@ -161,9 +161,9 @@ class MockRenderProcessHost : public RenderProcessHost {
bool deletion_callback_called_;
bool is_for_guests_only_;
bool is_process_backgrounded_;
- scoped_ptr<base::ProcessHandle> process_handle;
+ std::unique_ptr<base::ProcessHandle> process_handle;
int worker_ref_count_;
- scoped_ptr<ServiceRegistry> service_registry_;
+ std::unique_ptr<ServiceRegistry> service_registry_;
DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHost);
};
« no previous file with comments | « content/public/test/mock_download_manager.cc ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698