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

Side by Side Diff: chrome/browser/download/download_state_info.cc

Issue 7065015: For downloads requiring a user gesture, also require... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
OLDNEW
1
2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 // 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
4 // found in the LICENSE file. 3 // found in the LICENSE file.
5 4
6 #include "chrome/browser/download/download_state_info.h" 5 #include "chrome/browser/download/download_state_info.h"
7 6
8 #include "chrome/browser/download/download_item.h" 7 #include "chrome/browser/download/download_item.h"
9 8
10 DownloadStateInfo::DownloadStateInfo() 9 DownloadStateInfo::DownloadStateInfo()
11 : path_uniquifier(0), 10 : path_uniquifier(0),
(...skipping 30 matching lines...) Expand all
42 prompt_user_for_save_location(prompt_user_for_save_location), 41 prompt_user_for_save_location(prompt_user_for_save_location),
43 is_dangerous_file(dangerous_file), 42 is_dangerous_file(dangerous_file),
44 is_dangerous_url(dangerous_url), 43 is_dangerous_url(dangerous_url),
45 is_extension_install(extension_install), 44 is_extension_install(extension_install),
46 force_file_name(forced_name) { 45 force_file_name(forced_name) {
47 } 46 }
48 47
49 bool DownloadStateInfo::IsDangerous() const { 48 bool DownloadStateInfo::IsDangerous() const {
50 return is_dangerous_url || is_dangerous_file; 49 return is_dangerous_url || is_dangerous_file;
51 } 50 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager_unittest.cc ('k') | chrome/browser/renderer_host/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698