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

Side by Side Diff: content/browser/download/drag_download_file.cc

Issue 9110022: [Coverity] Fix uninitialized member (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/download/drag_download_file.h" 5 #include "content/browser/download/drag_download_file.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/browser/download/download_stats.h" 10 #include "content/browser/download/download_stats.h"
(...skipping 16 matching lines...) Expand all
27 const std::string& referrer_encoding, 27 const std::string& referrer_encoding,
28 TabContents* tab_contents) 28 TabContents* tab_contents)
29 : file_stream_(file_stream), 29 : file_stream_(file_stream),
30 url_(url), 30 url_(url),
31 referrer_(referrer), 31 referrer_(referrer),
32 referrer_encoding_(referrer_encoding), 32 referrer_encoding_(referrer_encoding),
33 tab_contents_(tab_contents), 33 tab_contents_(tab_contents),
34 drag_message_loop_(MessageLoop::current()), 34 drag_message_loop_(MessageLoop::current()),
35 is_started_(false), 35 is_started_(false),
36 is_successful_(false), 36 is_successful_(false),
37 #if defined(OS_WIN)
38 is_running_nested_message_loop_(false),
39 #endif
37 download_manager_(NULL), 40 download_manager_(NULL),
38 download_manager_observer_added_(false), 41 download_manager_observer_added_(false),
39 download_item_(NULL) { 42 download_item_(NULL) {
40 #if defined(OS_WIN) 43 #if defined(OS_WIN)
41 DCHECK(!file_name_or_path.empty() && !file_stream.get()); 44 DCHECK(!file_name_or_path.empty() && !file_stream.get());
42 file_name_ = file_name_or_path; 45 file_name_ = file_name_or_path;
43 #elif defined(OS_POSIX) 46 #elif defined(OS_POSIX)
44 DCHECK(!file_name_or_path.empty() && file_stream.get()); 47 DCHECK(!file_name_or_path.empty() && file_stream.get());
45 file_path_ = file_name_or_path; 48 file_path_ = file_name_or_path;
46 #endif 49 #endif
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 227
225 void DragDownloadFile::QuitNestedMessageLoop() { 228 void DragDownloadFile::QuitNestedMessageLoop() {
226 AssertCurrentlyOnDragThread(); 229 AssertCurrentlyOnDragThread();
227 230
228 if (is_running_nested_message_loop_) { 231 if (is_running_nested_message_loop_) {
229 is_running_nested_message_loop_ = false; 232 is_running_nested_message_loop_ = false;
230 MessageLoop::current()->Quit(); 233 MessageLoop::current()->Quit();
231 } 234 }
232 } 235 }
233 #endif 236 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698