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

Side by Side Diff: chrome/browser/net/cookie_store_util.cc

Issue 1117613003: [chrome/browser/net] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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/net/cookie_store_util.h" 5 #include "chrome/browser/net/cookie_store_util.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 16 matching lines...) Expand all
27 using content::BrowserThread; 27 using content::BrowserThread;
28 28
29 namespace { 29 namespace {
30 30
31 class ChromeCookieMonsterDelegate : public net::CookieMonsterDelegate { 31 class ChromeCookieMonsterDelegate : public net::CookieMonsterDelegate {
32 public: 32 public:
33 explicit ChromeCookieMonsterDelegate(Profile* profile) 33 explicit ChromeCookieMonsterDelegate(Profile* profile)
34 : profile_getter_( 34 : profile_getter_(
35 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(), 35 base::Bind(&GetProfileOnUI, g_browser_process->profile_manager(),
36 profile)) { 36 profile)) {
37 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 37 DCHECK_CURRENTLY_ON(BrowserThread::UI);
38 DCHECK(profile); 38 DCHECK(profile);
39 } 39 }
40 40
41 // net::CookieMonster::Delegate implementation. 41 // net::CookieMonster::Delegate implementation.
42 void OnCookieChanged( 42 void OnCookieChanged(
43 const net::CanonicalCookie& cookie, 43 const net::CanonicalCookie& cookie,
44 bool removed, 44 bool removed,
45 net::CookieMonster::Delegate::ChangeCause cause) override { 45 net::CookieMonster::Delegate::ChangeCause cause) override {
46 BrowserThread::PostTask( 46 BrowserThread::PostTask(
47 BrowserThread::UI, FROM_HERE, 47 BrowserThread::UI, FROM_HERE,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 net::CookieCryptoDelegate* GetCookieCryptoDelegate() { 122 net::CookieCryptoDelegate* GetCookieCryptoDelegate() {
123 return g_cookie_crypto_delegate.Pointer(); 123 return g_cookie_crypto_delegate.Pointer();
124 } 124 }
125 #else // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) 125 #else // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
126 net::CookieCryptoDelegate* GetCookieCryptoDelegate() { 126 net::CookieCryptoDelegate* GetCookieCryptoDelegate() {
127 return NULL; 127 return NULL;
128 } 128 }
129 #endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) 129 #endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
130 130
131 } // namespace chrome_browser_net 131 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context_getter.cc ('k') | chrome/browser/net/crl_set_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698