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

Side by Side Diff: extensions/browser/api/storage/settings_storage_quota_enforcer.cc

Issue 189263013: Move extensions storage API implementation to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (move_storage) Created 6 years, 9 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) 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 "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer. h" 5 #include "extensions/browser/api/storage/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/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "extensions/browser/value_store/value_store_util.h" 14 #include "extensions/browser/value_store/value_store_util.h"
15 #include "extensions/common/extension_api.h" 15 #include "extensions/common/extension_api.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 264 }
265 265
266 for (base::DictionaryValue::Iterator it(maybe_settings->settings()); 266 for (base::DictionaryValue::Iterator it(maybe_settings->settings());
267 !it.IsAtEnd(); 267 !it.IsAtEnd();
268 it.Advance()) { 268 it.Advance()) {
269 Allocate(it.key(), it.value(), &used_total_, &used_per_setting_); 269 Allocate(it.key(), it.value(), &used_total_, &used_per_setting_);
270 } 270 }
271 } 271 }
272 272
273 } // namespace extensions 273 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/storage/settings_storage_quota_enforcer.h ('k') | extensions/browser/api/storage/settings_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698