OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/download/save_package_file_picker.h" | 5 #include "chrome/browser/download/save_package_file_picker.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/prefs/pref_service.h" |
9 #include "base/prefs/public/pref_member.h" | 10 #include "base/prefs/public/pref_member.h" |
10 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 12 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
12 #include "chrome/browser/download/download_prefs.h" | 13 #include "chrome/browser/download/download_prefs.h" |
13 #include "chrome/browser/platform_util.h" | 14 #include "chrome/browser/platform_util.h" |
14 #include "chrome/browser/prefs/pref_service.h" | |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/chrome_select_file_policy.h" | 16 #include "chrome/browser/ui/chrome_select_file_policy.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "content/public/browser/download_manager.h" | 19 #include "content/public/browser/download_manager.h" |
20 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
21 #include "content/public/browser/save_page_type.h" | 21 #include "content/public/browser/save_page_type.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 callback_.Run(path, save_type, base::Bind(&OnSavePackageDownloadCreated)); | 222 callback_.Run(path, save_type, base::Bind(&OnSavePackageDownloadCreated)); |
223 } | 223 } |
224 | 224 |
225 delete this; | 225 delete this; |
226 } | 226 } |
227 | 227 |
228 void SavePackageFilePicker::FileSelectionCanceled(void* unused_params) { | 228 void SavePackageFilePicker::FileSelectionCanceled(void* unused_params) { |
229 delete this; | 229 delete this; |
230 } | 230 } |
OLD | NEW |