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

Side by Side Diff: chrome/browser/browsing_data/mock_browsing_data_service_worker_helper.cc

Issue 459233002: Browsing Data Deletion: Style fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-apply comment tweaks Created 6 years, 4 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
« no previous file with comments | « chrome/browser/browsing_data/mock_browsing_data_quota_helper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browsing_data/mock_browsing_data_service_worker_helper. h" 5 #include "chrome/browser/browsing_data/mock_browsing_data_service_worker_helper. h"
6 6
7 #include <vector>
8
7 #include "base/callback.h" 9 #include "base/callback.h"
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
10 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
11 #include "content/public/browser/storage_partition.h" 13 #include "content/public/browser/storage_partition.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 MockBrowsingDataServiceWorkerHelper::MockBrowsingDataServiceWorkerHelper( 16 MockBrowsingDataServiceWorkerHelper::MockBrowsingDataServiceWorkerHelper(
15 Profile* profile) 17 Profile* profile)
16 : BrowsingDataServiceWorkerHelper( 18 : BrowsingDataServiceWorkerHelper(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 i->second = true; 65 i->second = true;
64 } 66 }
65 67
66 bool MockBrowsingDataServiceWorkerHelper::AllDeleted() { 68 bool MockBrowsingDataServiceWorkerHelper::AllDeleted() {
67 for (std::map<GURL, bool>::const_iterator i = origins_.begin(); 69 for (std::map<GURL, bool>::const_iterator i = origins_.begin();
68 i != origins_.end(); ++i) 70 i != origins_.end(); ++i)
69 if (i->second) 71 if (i->second)
70 return false; 72 return false;
71 return true; 73 return true;
72 } 74 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/mock_browsing_data_quota_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698