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

Side by Side Diff: chrome/browser/permissions/permission_decision_auto_blocker.cc

Issue 2684523002: Check result of ApiBlacklist query in client. (Closed)
Patch Set: Check callback. Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/permissions/permission_decision_auto_blocker.h" 5 #include "chrome/browser/permissions/permission_decision_auto_blocker.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
12 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
13 #include "base/values.h" 12 #include "base/values.h"
14 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 14 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
16 #include "chrome/browser/permissions/permission_blacklist_client.h" 15 #include "chrome/browser/permissions/permission_blacklist_client.h"
17 #include "chrome/browser/permissions/permission_util.h" 16 #include "chrome/browser/permissions/permission_util.h"
18 #include "chrome/browser/profiles/incognito_helpers.h" 17 #include "chrome/browser/profiles/incognito_helpers.h"
19 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 19 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> db_manager, 366 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> db_manager,
368 int timeout) { 367 int timeout) {
369 db_manager_ = db_manager; 368 db_manager_ = db_manager;
370 safe_browsing_timeout_ = timeout; 369 safe_browsing_timeout_ = timeout;
371 } 370 }
372 371
373 void PermissionDecisionAutoBlocker::SetClockForTesting( 372 void PermissionDecisionAutoBlocker::SetClockForTesting(
374 std::unique_ptr<base::Clock> clock) { 373 std::unique_ptr<base::Clock> clock) {
375 clock_ = std::move(clock); 374 clock_ = std::move(clock);
376 } 375 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698