From d0ce4e6276eb30ec7b3957c10d42caacc51ac583 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Tue, 10 Aug 2010 07:13:06 +0000 Subject: Reland r55382. When blocking cookies, also show an icon in the location bar when cookies are accessed. If the user choses to block cookies per default, this will grant access to the collected cookies dialog as soon as the page accesses cookies. Right now, the icon is only shown if cookies were actually blocked. BUG=45230 TEST=Canned*.*:ContentSettingImage*.*:TabSpecific*.* Review URL: http://codereview.chromium.org/3014056 Review URL: http://codereview.chromium.org/3146003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55536 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browsing_data_database_helper.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/browsing_data_database_helper.cc') diff --git a/chrome/browser/browsing_data_database_helper.cc b/chrome/browser/browsing_data_database_helper.cc index 11e5e6b..5c00df1 100644 --- a/chrome/browser/browsing_data_database_helper.cc +++ b/chrome/browser/browsing_data_database_helper.cc @@ -147,6 +147,10 @@ void CannedBrowsingDataDatabaseHelper::Reset() { database_info_.clear(); } +bool CannedBrowsingDataDatabaseHelper::empty() const { + return database_info_.empty(); +} + void CannedBrowsingDataDatabaseHelper::StartFetching( Callback1& >::Type* callback) { callback->Run(database_info_); -- cgit v1.1