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

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

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 4 years, 12 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 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 "extensions/browser/api/storage/local_value_store_cache.h" 5 #include "extensions/browser/api/storage/local_value_store_cache.h"
6 6
7 #include <stddef.h>
8
7 #include <limits> 9 #include <limits>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/callback.h" 12 #include "base/callback.h"
11 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
12 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
13 #include "extensions/browser/api/storage/settings_storage_factory.h" 15 #include "extensions/browser/api/storage/settings_storage_factory.h"
14 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" 16 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h"
15 #include "extensions/browser/api/storage/weak_unlimited_settings_storage.h" 17 #include "extensions/browser/api/storage/weak_unlimited_settings_storage.h"
16 #include "extensions/browser/value_store/value_store.h" 18 #include "extensions/browser/value_store/value_store.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 linked_ptr<SettingsStorageQuotaEnforcer> storage( 90 linked_ptr<SettingsStorageQuotaEnforcer> storage(
89 new SettingsStorageQuotaEnforcer( 91 new SettingsStorageQuotaEnforcer(
90 quota_, storage_factory_->Create(file_path, extension->id()))); 92 quota_, storage_factory_->Create(file_path, extension->id())));
91 DCHECK(storage.get()); 93 DCHECK(storage.get());
92 94
93 storage_map_[extension->id()] = storage; 95 storage_map_[extension->id()] = storage;
94 return storage.get(); 96 return storage.get();
95 } 97 }
96 98
97 } // namespace extensions 99 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/storage/local_value_store_cache.h ('k') | extensions/browser/api/storage/settings_quota_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698