diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 21:22:38 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 21:22:38 +0000 |
commit | 369bbe7553cbb5934757b821a6cc3f24ba157df1 (patch) | |
tree | 0c224de462a75719238bbe728ff22adf1038ebf5 | |
parent | fde9df6ff7ec8e225f1a68567a4c6ad01322a895 (diff) | |
download | chromium_src-369bbe7553cbb5934757b821a6cc3f24ba157df1.zip chromium_src-369bbe7553cbb5934757b821a6cc3f24ba157df1.tar.gz chromium_src-369bbe7553cbb5934757b821a6cc3f24ba157df1.tar.bz2 |
Coverity: Fixing unused variables bugs.
CID=6162, 100396
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/8965061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115611 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/views/external_protocol_dialog.cc | 4 | ||||
-rw-r--r-- | content/browser/renderer_host/database_message_filter.cc | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/ui/views/external_protocol_dialog.cc b/chrome/browser/ui/views/external_protocol_dialog.cc index f63580c..f363194 100644 --- a/chrome/browser/ui/views/external_protocol_dialog.cc +++ b/chrome/browser/ui/views/external_protocol_dialog.cc @@ -41,8 +41,8 @@ void ExternalProtocolHandler::RunExternalProtocolDialog( TabContents* tab_contents = tab_util::GetTabContentsByID( render_process_host_id, routing_id); DCHECK(tab_contents); - ExternalProtocolDialog* handler = - new ExternalProtocolDialog(tab_contents, url, command); + // Windowing system takes ownership. + new ExternalProtocolDialog(tab_contents, url, command); } /////////////////////////////////////////////////////////////////////////////// diff --git a/content/browser/renderer_host/database_message_filter.cc b/content/browser/renderer_host/database_message_filter.cc index 1502cbc..1c995a4 100644 --- a/content/browser/renderer_host/database_message_filter.cc +++ b/content/browser/renderer_host/database_message_filter.cc @@ -122,8 +122,6 @@ void DatabaseMessageFilter::OnDatabaseOpenFile(const string16& vfs_file_name, IPC::Message* reply_msg) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); base::PlatformFile file_handle = base::kInvalidPlatformFileValue; - IPC::PlatformFileForTransit target_handle = - IPC::InvalidPlatformFileForTransit(); string16 origin_identifier; string16 database_name; @@ -162,7 +160,7 @@ void DatabaseMessageFilter::OnDatabaseOpenFile(const string16& vfs_file_name, // database tracker. bool auto_close = !db_tracker_->HasSavedIncognitoFileHandle(vfs_file_name); DCHECK_NE(base::kInvalidPlatformFileValue, file_handle); - target_handle = + IPC::PlatformFileForTransit target_handle = IPC::GetFileHandleForProcess(file_handle, peer_handle(), auto_close); DatabaseHostMsg_OpenFile::WriteReplyParams(reply_msg, target_handle); |