Commit f9f81754 authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in chrome/browser/browsing_data/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

Review URL: https://codereview.chromium.org/503363003

Cr-Commit-Position: refs/heads/master@{#291996}
parent 50aec929
......@@ -115,7 +115,7 @@ CannedBrowsingDataIndexedDBHelper::~CannedBrowsingDataIndexedDBHelper() {}
CannedBrowsingDataIndexedDBHelper* CannedBrowsingDataIndexedDBHelper::Clone() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
CannedBrowsingDataIndexedDBHelper* clone =
new CannedBrowsingDataIndexedDBHelper(indexed_db_context_);
new CannedBrowsingDataIndexedDBHelper(indexed_db_context_.get());
clone->pending_indexed_db_info_ = pending_indexed_db_info_;
clone->indexed_db_info_ = indexed_db_info_;
......
......@@ -820,7 +820,7 @@ class BrowsingDataRemoverTest : public testing::Test,
MockExtensionSpecialStoragePolicy* CreateMockPolicy() {
#if defined(ENABLE_EXTENSIONS)
mock_policy_ = new MockExtensionSpecialStoragePolicy;
return mock_policy_;
return mock_policy_.get();
#else
NOTREACHED();
return NULL;
......@@ -829,7 +829,7 @@ class BrowsingDataRemoverTest : public testing::Test,
storage::SpecialStoragePolicy* mock_policy() {
#if defined(ENABLE_EXTENSIONS)
return mock_policy_;
return mock_policy_.get();
#else
return NULL;
#endif
......
......@@ -1038,7 +1038,7 @@ void CookiesTreeModel::UpdateSearchResults(const base::string16& filter) {
#if defined(ENABLE_EXTENSIONS)
const extensions::ExtensionSet* CookiesTreeModel::ExtensionsProtectingNode(
const CookieTreeNode& cookie_node) {
if (!special_storage_policy_)
if (!special_storage_policy_.get())
return NULL;
CookieTreeNode::DetailedInfo info = cookie_node.GetDetailedInfo();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment