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

Unified Diff: chrome/common/database_util.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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 | « chrome/browser/user_style_sheet_watcher_unittest.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/database_util.cc
diff --git a/chrome/common/database_util.cc b/chrome/common/database_util.cc
index 412debcba451c1fb51fe8701cb4c21562698cfe8..ea4e2cc99c4ee93e235ec6082866c15269d1344e 100644
--- a/chrome/common/database_util.cc
+++ b/chrome/common/database_util.cc
@@ -18,8 +18,8 @@ WebKitClient::FileHandle DatabaseUtil::databaseOpenFile(
IPC::PlatformFileForTransit file_handle =
IPC::InvalidPlatformFileForTransit();
- scoped_refptr<IPC::SyncMessageFilter> filter =
- ChildThread::current()->sync_message_filter();
+ scoped_refptr<IPC::SyncMessageFilter> filter(
+ ChildThread::current()->sync_message_filter());
filter->Send(new ViewHostMsg_DatabaseOpenFile(
vfs_file_name, desired_flags, &file_handle));
@@ -29,8 +29,8 @@ WebKitClient::FileHandle DatabaseUtil::databaseOpenFile(
int DatabaseUtil::databaseDeleteFile(
const WebString& vfs_file_name, bool sync_dir) {
int rv = SQLITE_IOERR_DELETE;
- scoped_refptr<IPC::SyncMessageFilter> filter =
- ChildThread::current()->sync_message_filter();
+ scoped_refptr<IPC::SyncMessageFilter> filter(
+ ChildThread::current()->sync_message_filter());
filter->Send(new ViewHostMsg_DatabaseDeleteFile(
vfs_file_name, sync_dir, &rv));
return rv;
@@ -38,16 +38,16 @@ int DatabaseUtil::databaseDeleteFile(
long DatabaseUtil::databaseGetFileAttributes(const WebString& vfs_file_name) {
int32 rv = -1;
- scoped_refptr<IPC::SyncMessageFilter> filter =
- ChildThread::current()->sync_message_filter();
+ scoped_refptr<IPC::SyncMessageFilter> filter(
+ ChildThread::current()->sync_message_filter());
filter->Send(new ViewHostMsg_DatabaseGetFileAttributes(vfs_file_name, &rv));
return rv;
}
long long DatabaseUtil::databaseGetFileSize(const WebString& vfs_file_name) {
int64 rv = 0LL;
- scoped_refptr<IPC::SyncMessageFilter> filter =
- ChildThread::current()->sync_message_filter();
+ scoped_refptr<IPC::SyncMessageFilter> filter(
+ ChildThread::current()->sync_message_filter());
filter->Send(new ViewHostMsg_DatabaseGetFileSize(vfs_file_name, &rv));
return rv;
}
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_unittest.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698