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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 explicit ChromeCookieMonsterDelegate( 100 explicit ChromeCookieMonsterDelegate(
101 const base::Callback<Profile*(void)>& profile_getter) 101 const base::Callback<Profile*(void)>& profile_getter)
102 : profile_getter_(profile_getter) { 102 : profile_getter_(profile_getter) {
103 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 103 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
104 } 104 }
105 105
106 // net::CookieMonster::Delegate implementation. 106 // net::CookieMonster::Delegate implementation.
107 virtual void OnCookieChanged( 107 virtual void OnCookieChanged(
108 const net::CanonicalCookie& cookie, 108 const net::CanonicalCookie& cookie,
109 bool removed, 109 bool removed,
110 net::CookieMonster::Delegate::ChangeCause cause) { 110 net::CookieMonster::Delegate::ChangeCause cause) OVERRIDE {
111 BrowserThread::PostTask( 111 BrowserThread::PostTask(
112 BrowserThread::UI, FROM_HERE, 112 BrowserThread::UI, FROM_HERE,
113 base::Bind(&ChromeCookieMonsterDelegate::OnCookieChangedAsyncHelper, 113 base::Bind(&ChromeCookieMonsterDelegate::OnCookieChangedAsyncHelper,
114 this, cookie, removed, cause)); 114 this, cookie, removed, cause));
115 } 115 }
116 116
117 private: 117 private:
118 virtual ~ChromeCookieMonsterDelegate() {} 118 virtual ~ChromeCookieMonsterDelegate() {}
119 119
120 void OnCookieChangedAsyncHelper( 120 void OnCookieChangedAsyncHelper(
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 void ProfileIOData::SetCookieSettingsForTesting( 821 void ProfileIOData::SetCookieSettingsForTesting(
822 CookieSettings* cookie_settings) { 822 CookieSettings* cookie_settings) {
823 DCHECK(!cookie_settings_.get()); 823 DCHECK(!cookie_settings_.get());
824 cookie_settings_ = cookie_settings; 824 cookie_settings_ = cookie_settings;
825 } 825 }
826 826
827 void ProfileIOData::set_signin_names_for_testing( 827 void ProfileIOData::set_signin_names_for_testing(
828 SigninNamesOnIOThread* signin_names) { 828 SigninNamesOnIOThread* signin_names) {
829 signin_names_.reset(signin_names); 829 signin_names_.reset(signin_names);
830 } 830 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698