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

Side by Side Diff: chrome/browser/profiles/profile_info_cache.cc

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 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/profiles/profile_info_cache.h" 5 #include "chrome/browser/profiles/profile_info_cache.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/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/i18n/case_conversion.h" 10 #include "base/i18n/case_conversion.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 if (image.IsEmpty()) { 158 if (image.IsEmpty()) {
159 LOG(ERROR) << "Failed to decode PNG file."; 159 LOG(ERROR) << "Failed to decode PNG file.";
160 return; 160 return;
161 } 161 }
162 162
163 *out_image = new gfx::Image(image); 163 *out_image = new gfx::Image(image);
164 } 164 }
165 165
166 void DeleteBitmap(const base::FilePath& image_path) { 166 void DeleteBitmap(const base::FilePath& image_path) {
167 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 167 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
168 file_util::Delete(image_path, false); 168 base::Delete(image_path, false);
169 } 169 }
170 170
171 } // namespace 171 } // namespace
172 172
173 ProfileInfoCache::ProfileInfoCache(PrefService* prefs, 173 ProfileInfoCache::ProfileInfoCache(PrefService* prefs,
174 const base::FilePath& user_data_dir) 174 const base::FilePath& user_data_dir)
175 : prefs_(prefs), 175 : prefs_(prefs),
176 user_data_dir_(user_data_dir) { 176 user_data_dir_(user_data_dir) {
177 // Populate the cache 177 // Populate the cache
178 const DictionaryValue* cache = 178 const DictionaryValue* cache =
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 info->GetString(kNameKey, &name); 836 info->GetString(kNameKey, &name);
837 names.push_back(name); 837 names.push_back(name);
838 } 838 }
839 return names; 839 return names;
840 } 840 }
841 841
842 // static 842 // static
843 void ProfileInfoCache::RegisterPrefs(PrefRegistrySimple* registry) { 843 void ProfileInfoCache::RegisterPrefs(PrefRegistrySimple* registry) {
844 registry->RegisterDictionaryPref(prefs::kProfileInfoCache); 844 registry->RegisterDictionaryPref(prefs::kProfileInfoCache);
845 } 845 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_layout_browsertest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698