| 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/signin/signin_manager_cookie_helper.h" | 5 #include "chrome/browser/signin/signin_manager_cookie_helper.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/browser/browser_process.h" | |
| 10 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 11 #include "google_apis/gaia/gaia_urls.h" | 10 #include "google_apis/gaia/gaia_urls.h" |
| 12 #include "net/cookies/cookie_monster.h" | 11 #include "net/cookies/cookie_monster.h" |
| 13 #include "net/url_request/url_request_context.h" | 12 #include "net/url_request/url_request_context.h" |
| 14 | 13 |
| 15 using content::BrowserThread; | 14 using content::BrowserThread; |
| 16 | 15 |
| 17 SigninManagerCookieHelper::SigninManagerCookieHelper( | 16 SigninManagerCookieHelper::SigninManagerCookieHelper( |
| 18 net::URLRequestContextGetter* request_context_getter) | 17 net::URLRequestContextGetter* request_context_getter) |
| 19 : request_context_getter_(request_context_getter) { | 18 : request_context_getter_(request_context_getter) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 BrowserThread::PostTask( | 55 BrowserThread::PostTask( |
| 57 BrowserThread::UI, FROM_HERE, | 56 BrowserThread::UI, FROM_HERE, |
| 58 base::Bind(&SigninManagerCookieHelper::NotifyOnUIThread, this, cookies)); | 57 base::Bind(&SigninManagerCookieHelper::NotifyOnUIThread, this, cookies)); |
| 59 } | 58 } |
| 60 | 59 |
| 61 void SigninManagerCookieHelper::NotifyOnUIThread( | 60 void SigninManagerCookieHelper::NotifyOnUIThread( |
| 62 const net::CookieList& cookies) { | 61 const net::CookieList& cookies) { |
| 63 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 62 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 64 base::ResetAndReturn(&completion_callback_).Run(cookies); | 63 base::ResetAndReturn(&completion_callback_).Run(cookies); |
| 65 } | 64 } |
| OLD | NEW |