diff options
author | dcheng <dcheng@chromium.org> | 2014-09-03 10:14:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-03 17:41:54 +0000 |
commit | d3c60604e97ef9b681ad539ceffa601c0da62188 (patch) | |
tree | 83f4b13eef13c7211a3fc9096695fe9c74aaadaa /content/browser | |
parent | 700659fd0303510f749b118cec372e0cd9ab9db2 (diff) | |
download | chromium_src-d3c60604e97ef9b681ad539ceffa601c0da62188.zip chromium_src-d3c60604e97ef9b681ad539ceffa601c0da62188.tar.gz chromium_src-d3c60604e97ef9b681ad539ceffa601c0da62188.tar.bz2 |
content/ fixups for scoped_refptr operator T* removal.
BUG=110610
TBR=sky@chromium.org
Review URL: https://codereview.chromium.org/532833003
Cr-Commit-Position: refs/heads/master@{#293159}
Diffstat (limited to 'content/browser')
4 files changed, 12 insertions, 11 deletions
diff --git a/content/browser/indexed_db/indexed_db_factory_impl.cc b/content/browser/indexed_db/indexed_db_factory_impl.cc index 069ade5..b9a2042 100644 --- a/content/browser/indexed_db/indexed_db_factory_impl.cc +++ b/content/browser/indexed_db/indexed_db_factory_impl.cc @@ -276,7 +276,7 @@ void IndexedDBFactoryImpl::DeleteDatabase( } database_map_[unique_identifier] = database.get(); - origin_dbs_.insert(std::make_pair(origin_url, database)); + origin_dbs_.insert(std::make_pair(origin_url, database.get())); database->DeleteDatabase(callbacks); RemoveDatabaseFromMaps(unique_identifier); database = NULL; @@ -482,7 +482,7 @@ void IndexedDBFactoryImpl::Open(const base::string16& name, if (!was_open && database->ConnectionCount() > 0) { database_map_[unique_identifier] = database.get(); - origin_dbs_.insert(std::make_pair(origin_url, database)); + origin_dbs_.insert(std::make_pair(origin_url, database.get())); } } diff --git a/content/browser/renderer_host/media/video_capture_controller_unittest.cc b/content/browser/renderer_host/media/video_capture_controller_unittest.cc index 87e2542..6a9f4b7 100644 --- a/content/browser/renderer_host/media/video_capture_controller_unittest.cc +++ b/content/browser/renderer_host/media/video_capture_controller_unittest.cc @@ -412,7 +412,7 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) { } // ReserveOutputBuffer ought to fail now, because the pool is depleted. ASSERT_FALSE(device_->ReserveOutputBuffer(media::VideoFrame::I420, - capture_resolution)); + capture_resolution).get()); // The new client needs to be told of 3 buffers; the old clients only 2. EXPECT_CALL(*client_b_, DoBufferCreated(client_b_route_2)).Times(kPoolSize); @@ -525,9 +525,9 @@ TEST_F(VideoCaptureControllerTest, NormalCaptureMultipleClients) { // ReserveOutputBuffers ought to fail now regardless of buffer format, because // the pool is depleted. ASSERT_FALSE(device_->ReserveOutputBuffer(media::VideoFrame::I420, - capture_resolution)); + capture_resolution).get()); ASSERT_FALSE(device_->ReserveOutputBuffer(media::VideoFrame::NATIVE_TEXTURE, - gfx::Size(0, 0))); + gfx::Size(0, 0)).get()); EXPECT_CALL(*client_b_, DoBufferReady(client_b_route_2)).Times(shm_buffers); EXPECT_CALL(*client_b_, DoMailboxBufferReady(client_b_route_2)) .Times(mailbox_buffers); diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc index 2c86e91..0f1fdf3 100644 --- a/content/browser/utility_process_host_impl.cc +++ b/content/browser/utility_process_host_impl.cc @@ -86,8 +86,8 @@ class UtilitySandboxedProcessLauncherDelegate UtilityMainThreadFactoryFunction g_utility_main_thread_factory = NULL; UtilityProcessHost* UtilityProcessHost::Create( - UtilityProcessHostClient* client, - base::SequencedTaskRunner* client_task_runner) { + const scoped_refptr<UtilityProcessHostClient>& client, + const scoped_refptr<base::SequencedTaskRunner>& client_task_runner) { return new UtilityProcessHostImpl(client, client_task_runner); } @@ -97,8 +97,8 @@ void UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( } UtilityProcessHostImpl::UtilityProcessHostImpl( - UtilityProcessHostClient* client, - base::SequencedTaskRunner* client_task_runner) + const scoped_refptr<UtilityProcessHostClient>& client, + const scoped_refptr<base::SequencedTaskRunner>& client_task_runner) : client_(client), client_task_runner_(client_task_runner), is_batch_mode_(false), diff --git a/content/browser/utility_process_host_impl.h b/content/browser/utility_process_host_impl.h index 8486655..29f1dba 100644 --- a/content/browser/utility_process_host_impl.h +++ b/content/browser/utility_process_host_impl.h @@ -35,8 +35,9 @@ class CONTENT_EXPORT UtilityProcessHostImpl static void RegisterUtilityMainThreadFactory( UtilityMainThreadFactoryFunction create); - UtilityProcessHostImpl(UtilityProcessHostClient* client, - base::SequencedTaskRunner* client_task_runner); + UtilityProcessHostImpl( + const scoped_refptr<UtilityProcessHostClient>& client, + const scoped_refptr<base::SequencedTaskRunner>& client_task_runner); virtual ~UtilityProcessHostImpl(); // UtilityProcessHost implementation: |