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

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

Issue 7618048: Move the core download files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 // 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 "chrome/browser/download/save_package_file_picker.h" 5 #include "chrome/browser/download/save_package_file_picker.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/download/download_manager.h"
9 #include "chrome/browser/download/download_prefs.h" 8 #include "chrome/browser/download/download_prefs.h"
10 #include "chrome/browser/platform_util.h" 9 #include "chrome/browser/platform_util.h"
11 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
12 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "content/browser/download/download_manager.h"
15 #include "content/browser/download/save_package.h" 15 #include "content/browser/download/save_package.h"
16 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 19
20 namespace { 20 namespace {
21 21
22 // If false, we don't prompt the user as to where to save the file. This 22 // If false, we don't prompt the user as to where to save the file. This
23 // exists only for testing. 23 // exists only for testing.
24 bool g_should_prompt_for_filename = true; 24 bool g_should_prompt_for_filename = true;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 save_package_->OnPathPicked(path, save_type); 178 save_package_->OnPathPicked(path, save_type);
179 } 179 }
180 180
181 delete this; 181 delete this;
182 } 182 }
183 183
184 void SavePackageFilePicker::FileSelectionCanceled(void* params) { 184 void SavePackageFilePicker::FileSelectionCanceled(void* params) {
185 delete this; 185 delete this;
186 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698