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

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

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/download/download_query.h » ('j') | 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) 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/download_prefs.h" 5 #include "chrome/browser/download/download_prefs.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
12 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
13 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
14 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h"
15 #include "base/path_service.h" 18 #include "base/path_service.h"
16 #include "base/prefs/pref_service.h" 19 #include "base/prefs/pref_service.h"
17 #include "base/strings/string_split.h" 20 #include "base/strings/string_split.h"
18 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
19 #include "base/strings/sys_string_conversions.h" 22 #include "base/strings/sys_string_conversions.h"
20 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
24 #include "build/build_config.h"
21 #include "chrome/browser/download/chrome_download_manager_delegate.h" 25 #include "chrome/browser/download/chrome_download_manager_delegate.h"
22 #include "chrome/browser/download/download_extensions.h" 26 #include "chrome/browser/download/download_extensions.h"
23 #include "chrome/browser/download/download_service.h" 27 #include "chrome/browser/download/download_service.h"
24 #include "chrome/browser/download/download_service_factory.h" 28 #include "chrome/browser/download/download_service_factory.h"
25 #include "chrome/browser/download/download_target_determiner.h" 29 #include "chrome/browser/download/download_target_determiner.h"
26 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
27 #include "chrome/browser/profiles/profile_manager.h" 31 #include "chrome/browser/profiles/profile_manager.h"
28 #include "chrome/common/chrome_paths.h" 32 #include "chrome/common/chrome_paths.h"
29 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
30 #include "components/pref_registry/pref_registry_syncable.h" 34 #include "components/pref_registry/pref_registry_syncable.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 extensions.erase(extensions.size() - 1); 385 extensions.erase(extensions.size() - 1);
382 386
383 profile_->GetPrefs()->SetString(prefs::kDownloadExtensionsToOpen, extensions); 387 profile_->GetPrefs()->SetString(prefs::kDownloadExtensionsToOpen, extensions);
384 } 388 }
385 389
386 bool DownloadPrefs::AutoOpenCompareFunctor::operator()( 390 bool DownloadPrefs::AutoOpenCompareFunctor::operator()(
387 const base::FilePath::StringType& a, 391 const base::FilePath::StringType& a,
388 const base::FilePath::StringType& b) const { 392 const base::FilePath::StringType& b) const {
389 return base::FilePath::CompareLessIgnoreCase(a, b); 393 return base::FilePath::CompareLessIgnoreCase(a, b);
390 } 394 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/download/download_query.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698