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

Side by Side Diff: chrome/browser/safe_browsing/local_database_manager.cc

Issue 1865763002: Rename download_protection_enabled to IsDownloadProtectionEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (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/safe_browsing/local_database_manager.h" 5 #include "chrome/browser/safe_browsing/local_database_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 base::PostTaskAndReplyWithResult( 1247 base::PostTaskAndReplyWithResult(
1248 safe_browsing_task_runner_.get(), FROM_HERE, task, 1248 safe_browsing_task_runner_.get(), FROM_HERE, task,
1249 base::Bind(&LocalSafeBrowsingDatabaseManager::OnAsyncCheckDone, 1249 base::Bind(&LocalSafeBrowsingDatabaseManager::OnAsyncCheckDone,
1250 check->weak_ptr_factory_->GetWeakPtr(), check)); 1250 check->weak_ptr_factory_->GetWeakPtr(), check));
1251 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( 1251 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
1252 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback, 1252 FROM_HERE, base::Bind(&LocalSafeBrowsingDatabaseManager::TimeoutCallback,
1253 check->weak_ptr_factory_->GetWeakPtr(), check), 1253 check->weak_ptr_factory_->GetWeakPtr(), check),
1254 check_timeout_); 1254 check_timeout_);
1255 } 1255 }
1256 1256
1257 bool LocalSafeBrowsingDatabaseManager::download_protection_enabled() const { 1257 bool LocalSafeBrowsingDatabaseManager::IsDownloadProtectionEnabled() const {
1258 return enable_download_protection_; 1258 return enable_download_protection_;
1259 } 1259 }
1260 1260
1261 } // namespace safe_browsing 1261 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/local_database_manager.h ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698