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

Side by Side Diff: chrome/browser/supervised_user/experimental/supervised_user_blacklist.cc

Issue 2695823008: Add missing #include around sequenced_worker_pool.h in //chrome (Closed)
Patch Set: sync_websocket_impl & wizard_controller 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/supervised_user/experimental/supervised_user_blacklist. h" 5 #include "chrome/browser/supervised_user/experimental/supervised_user_blacklist. h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 #include <fstream> 9 #include <fstream>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/memory_mapped_file.h" 12 #include "base/files/memory_mapped_file.h"
13 #include "base/threading/sequenced_worker_pool.h"
13 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 using content::BrowserThread; 17 using content::BrowserThread;
17 18
18 namespace { 19 namespace {
19 20
20 std::unique_ptr<std::vector<SupervisedUserBlacklist::Hash>> 21 std::unique_ptr<std::vector<SupervisedUserBlacklist::Hash>>
21 ReadFromBinaryFileOnFileThread(const base::FilePath& path) { 22 ReadFromBinaryFileOnFileThread(const base::FilePath& path) {
22 DCHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); 23 DCHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread());
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 void SupervisedUserBlacklist::OnReadFromFileCompleted( 88 void SupervisedUserBlacklist::OnReadFromFileCompleted(
88 const base::Closure& done_callback, 89 const base::Closure& done_callback,
89 std::unique_ptr<std::vector<Hash>> host_hashes) { 90 std::unique_ptr<std::vector<Hash>> host_hashes) {
90 host_hashes_.swap(*host_hashes); 91 host_hashes_.swap(*host_hashes);
91 LOG_IF(WARNING, host_hashes_.empty()) << "Got empty blacklist"; 92 LOG_IF(WARNING, host_hashes_.empty()) << "Got empty blacklist";
92 93
93 if (!done_callback.is_null()) 94 if (!done_callback.is_null())
94 done_callback.Run(); 95 done_callback.Run();
95 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698