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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2828663002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{i,l,m,n,p,r}* (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void DeleteWebRTCIdentityStoreDBOnFileThread( 325 void DeleteWebRTCIdentityStoreDBOnFileThread(
326 const base::FilePath& profile_path) { 326 const base::FilePath& profile_path) {
327 base::DeleteFile(profile_path.Append( 327 base::DeleteFile(profile_path.Append(
328 FILE_PATH_LITERAL("WebRTCIdentityStore")), false); 328 FILE_PATH_LITERAL("WebRTCIdentityStore")), false);
329 base::DeleteFile(profile_path.Append( 329 base::DeleteFile(profile_path.Append(
330 FILE_PATH_LITERAL("WebRTCIdentityStore-journal")), false); 330 FILE_PATH_LITERAL("WebRTCIdentityStore-journal")), false);
331 } 331 }
332 332
333 void DeleteWebRTCIdentityStoreDB(const Profile& profile) { 333 void DeleteWebRTCIdentityStoreDB(const Profile& profile) {
334 content::BrowserThread::PostDelayedTask( 334 content::BrowserThread::PostDelayedTask(
335 content::BrowserThread::FILE, 335 content::BrowserThread::FILE, FROM_HERE,
336 FROM_HERE, 336 base::BindOnce(&DeleteWebRTCIdentityStoreDBOnFileThread,
337 base::Bind(&DeleteWebRTCIdentityStoreDBOnFileThread, profile.GetPath()), 337 profile.GetPath()),
338 base::TimeDelta::FromSeconds(120)); 338 base::TimeDelta::FromSeconds(120));
339 } 339 }
340 340
341 } // namespace 341 } // namespace
342 342
343 namespace chrome { 343 namespace chrome {
344 344
345 void RegisterLocalState(PrefRegistrySimple* registry) { 345 void RegisterLocalState(PrefRegistrySimple* registry) {
346 // Please keep this list alphabetized. 346 // Please keep this list alphabetized.
347 AppListService::RegisterPrefs(registry); 347 AppListService::RegisterPrefs(registry);
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 } 825 }
826 826
827 std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() { 827 std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() {
828 auto pref_stores = ExpectedPrefStores(); 828 auto pref_stores = ExpectedPrefStores();
829 pref_stores.erase(PrefValueStore::DEFAULT_STORE); 829 pref_stores.erase(PrefValueStore::DEFAULT_STORE);
830 pref_stores.erase(PrefValueStore::USER_STORE); 830 pref_stores.erase(PrefValueStore::USER_STORE);
831 return pref_stores; 831 return pref_stores;
832 } 832 }
833 833
834 } // namespace chrome 834 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_info_message_filter.cc ('k') | chrome/browser/prefs/chrome_pref_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698