OLD | NEW |
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/importer/toolbar_importer_utils.h" | 5 #include "chrome/browser/importer/toolbar_importer_utils.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "net/cookies/cookie_store.h" | 15 #include "net/cookies/cookie_store.h" |
16 #include "net/url_request/url_request_context.h" | 16 #include "net/url_request/url_request_context.h" |
17 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
71 if (!callback.is_null()) { | 71 if (!callback.is_null()) { |
72 BrowserThread::PostTask( | 72 BrowserThread::PostTask( |
73 BrowserThread::IO, FROM_HERE, | 73 BrowserThread::IO, FROM_HERE, |
74 base::Bind(&FetchCookiesOnIOThread, | 74 base::Bind(&FetchCookiesOnIOThread, |
75 callback, base::Unretained(profile->GetRequestContext()))); | 75 callback, base::Unretained(profile->GetRequestContext()))); |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 } // namespace toolbar_importer_utils | 79 } // namespace toolbar_importer_utils |
OLD | NEW |