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

Side by Side Diff: components/invalidation/impl/invalidator_storage.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 "components/invalidation/impl/invalidator_storage.h" 5 #include "components/invalidation/impl/invalidator_storage.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 #include <utility> 10 #include <utility>
9 11
10 #include "base/base64.h" 12 #include "base/base64.h"
11 #include "base/basictypes.h"
12 #include "base/logging.h" 13 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/prefs/pref_registry_simple.h" 15 #include "base/prefs/pref_registry_simple.h"
15 #include "base/prefs/pref_service.h" 16 #include "base/prefs/pref_service.h"
16 #include "base/values.h" 17 #include "base/values.h"
17 #include "components/invalidation/impl/invalidation_prefs.h" 18 #include "components/invalidation/impl/invalidation_prefs.h"
18 #include "components/invalidation/impl/unacked_invalidation_set.h" 19 #include "components/invalidation/impl/unacked_invalidation_set.h"
19 #include "components/pref_registry/pref_registry_syncable.h" 20 #include "components/pref_registry/pref_registry_syncable.h"
20 #include "google/cacheinvalidation/types.pb.h" 21 #include "google/cacheinvalidation/types.pb.h"
21 22
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 131 }
131 132
132 void InvalidatorStorage::Clear() { 133 void InvalidatorStorage::Clear() {
133 DCHECK(thread_checker_.CalledOnValidThread()); 134 DCHECK(thread_checker_.CalledOnValidThread());
134 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations); 135 pref_service_->ClearPref(prefs::kInvalidatorSavedInvalidations);
135 pref_service_->ClearPref(prefs::kInvalidatorClientId); 136 pref_service_->ClearPref(prefs::kInvalidatorClientId);
136 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState); 137 pref_service_->ClearPref(prefs::kInvalidatorInvalidationState);
137 } 138 }
138 139
139 } // namespace invalidation 140 } // namespace invalidation
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698