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

Side by Side Diff: chrome/browser/signin/signin_manager_cookie_helper.cc

Issue 15024007: Eliminate BrowserProcess dependency from sign-in production code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_base.cc ('k') | chrome/browser/signin/signin_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698