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

Side by Side Diff: chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/settings/settings_storage_quota_enforcer.h" 5 #include "chrome/browser/extensions/settings/settings_storage_quota_enforcer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/task.h"
13 12
14 namespace extensions { 13 namespace extensions {
15 14
16 namespace { 15 namespace {
17 16
18 const char* kExceededQuotaErrorMessage = "Quota exceeded"; 17 const char* kExceededQuotaErrorMessage = "Quota exceeded";
19 18
20 // Resources there are a quota for. 19 // Resources there are a quota for.
21 enum Resource { 20 enum Resource {
22 TOTAL_BYTES, 21 TOTAL_BYTES,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return result; 203 return result;
205 } 204 }
206 205
207 while (!used_per_setting_.empty()) { 206 while (!used_per_setting_.empty()) {
208 Free(&used_total_, &used_per_setting_, used_per_setting_.begin()->first); 207 Free(&used_total_, &used_per_setting_, used_per_setting_.begin()->first);
209 } 208 }
210 return result; 209 return result;
211 } 210 }
212 211
213 } // namespace extensions 212 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698