summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/browsing_data_cookie_helper.cc5
-rw-r--r--chrome/browser/browsing_data_cookie_helper.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/browsing_data_cookie_helper.cc b/chrome/browser/browsing_data_cookie_helper.cc
index 18054a3..97bf2ac 100644
--- a/chrome/browser/browsing_data_cookie_helper.cc
+++ b/chrome/browser/browsing_data_cookie_helper.cc
@@ -90,8 +90,7 @@ void BrowsingDataCookieHelper::DeleteCookieOnIOThread(
CannedBrowsingDataCookieHelper::CannedBrowsingDataCookieHelper(
Profile* profile)
- : BrowsingDataCookieHelper(profile),
- profile_(profile) {
+ : BrowsingDataCookieHelper(profile) {
}
CannedBrowsingDataCookieHelper::~CannedBrowsingDataCookieHelper() {}
@@ -99,7 +98,7 @@ CannedBrowsingDataCookieHelper::~CannedBrowsingDataCookieHelper() {}
CannedBrowsingDataCookieHelper* CannedBrowsingDataCookieHelper::Clone() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
CannedBrowsingDataCookieHelper* clone =
- new CannedBrowsingDataCookieHelper(profile_);
+ new CannedBrowsingDataCookieHelper(profile());
clone->cookie_list_ = cookie_list_;
return clone;
diff --git a/chrome/browser/browsing_data_cookie_helper.h b/chrome/browser/browsing_data_cookie_helper.h
index 2ef0512..4130748 100644
--- a/chrome/browser/browsing_data_cookie_helper.h
+++ b/chrome/browser/browsing_data_cookie_helper.h
@@ -43,6 +43,7 @@ class BrowsingDataCookieHelper
protected:
friend class base::RefCountedThreadSafe<BrowsingDataCookieHelper>;
virtual ~BrowsingDataCookieHelper();
+ Profile* profile() { return profile_; }
private:
// Fetch the cookies. This must be called in the IO thread.
@@ -118,8 +119,6 @@ class CannedBrowsingDataCookieHelper : public BrowsingDataCookieHelper {
net::CookieList cookie_list_;
- Profile* profile_;
-
DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataCookieHelper);
};