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

Side by Side Diff: content/browser/storage_partition_impl.cc

Issue 1403673002: Add Quota.TimeSinceOriginEvicted UMA histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix histogram comment Created 5 years, 2 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 (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 "content/browser/storage_partition_impl.h" 5 #include "content/browser/storage_partition_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 continue; 719 continue;
720 720
721 if (!origin_matcher.is_null() && 721 if (!origin_matcher.is_null() &&
722 !origin_matcher.Run(*origin, special_storage_policy.get())) { 722 !origin_matcher.Run(*origin, special_storage_policy.get())) {
723 continue; 723 continue;
724 } 724 }
725 725
726 (*deletion_task_count)++; 726 (*deletion_task_count)++;
727 quota_manager->DeleteOriginData( 727 quota_manager->DeleteOriginData(
728 *origin, quota_storage_type, 728 *origin, quota_storage_type,
729 StoragePartitionImpl::GenerateQuotaClientMask(remove_mask), 729 StoragePartitionImpl::GenerateQuotaClientMask(remove_mask), false,
730 base::Bind(&OnQuotaManagedOriginDeleted, 730 base::Bind(&OnQuotaManagedOriginDeleted, origin->GetOrigin(),
731 origin->GetOrigin(), quota_storage_type, 731 quota_storage_type, deletion_task_count, callback));
732 deletion_task_count, callback));
733 } 732 }
734 (*deletion_task_count)--; 733 (*deletion_task_count)--;
735 734
736 CheckQuotaManagedDataDeletionStatus(deletion_task_count, callback); 735 CheckQuotaManagedDataDeletionStatus(deletion_task_count, callback);
737 } 736 }
738 737
739 void StoragePartitionImpl::DataDeletionHelper::IncrementTaskCountOnUI() { 738 void StoragePartitionImpl::DataDeletionHelper::IncrementTaskCountOnUI() {
740 DCHECK_CURRENTLY_ON(BrowserThread::UI); 739 DCHECK_CURRENTLY_ON(BrowserThread::UI);
741 ++task_count; 740 ++task_count;
742 } 741 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 net::URLRequestContextGetter* url_request_context) { 905 net::URLRequestContextGetter* url_request_context) {
907 url_request_context_ = url_request_context; 906 url_request_context_ = url_request_context;
908 } 907 }
909 908
910 void StoragePartitionImpl::SetMediaURLRequestContext( 909 void StoragePartitionImpl::SetMediaURLRequestContext(
911 net::URLRequestContextGetter* media_url_request_context) { 910 net::URLRequestContextGetter* media_url_request_context) {
912 media_url_request_context_ = media_url_request_context; 911 media_url_request_context_ = media_url_request_context;
913 } 912 }
914 913
915 } // namespace content 914 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698