OLD | NEW |
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/net/nss_context.h" | 5 #include "chrome/browser/net/nss_context.h" |
6 | 6 |
7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/resource_context.h" | 12 #include "content/public/browser/resource_context.h" |
13 | 13 |
14 using content::BrowserThread; | 14 using content::BrowserThread; |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Relays callback to the right message loop. | 18 // Relays callback to the right message loop. |
19 void DidGetCertDBOnIOThread( | 19 void DidGetCertDBOnIOThread( |
(...skipping 30 matching lines...) Expand all Loading... |
50 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 50 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
51 | 51 |
52 BrowserThread::PostTask(BrowserThread::IO, | 52 BrowserThread::PostTask(BrowserThread::IO, |
53 FROM_HERE, | 53 FROM_HERE, |
54 base::Bind(&GetCertDBOnIOThread, | 54 base::Bind(&GetCertDBOnIOThread, |
55 profile->GetResourceContext(), | 55 profile->GetResourceContext(), |
56 base::ThreadTaskRunnerHandle::Get(), | 56 base::ThreadTaskRunnerHandle::Get(), |
57 callback)); | 57 callback)); |
58 } | 58 } |
59 | 59 |
OLD | NEW |