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

Side by Side Diff: components/prefs/overlay_user_pref_store.cc

Issue 1648403002: Move base/prefs to components/prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "base/prefs/overlay_user_pref_store.h" 5 #include "base/prefs/overlay_user_pref_store.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 NamesMap::const_iterator i = 177 NamesMap::const_iterator i =
178 overlay_to_underlay_names_map_.find(overlay_key); 178 overlay_to_underlay_names_map_.find(overlay_key);
179 return i != overlay_to_underlay_names_map_.end() ? i->second : overlay_key; 179 return i != overlay_to_underlay_names_map_.end() ? i->second : overlay_key;
180 } 180 }
181 181
182 bool OverlayUserPrefStore::ShallBeStoredInOverlay( 182 bool OverlayUserPrefStore::ShallBeStoredInOverlay(
183 const std::string& key) const { 183 const std::string& key) const {
184 return overlay_to_underlay_names_map_.find(key) != 184 return overlay_to_underlay_names_map_.find(key) !=
185 overlay_to_underlay_names_map_.end(); 185 overlay_to_underlay_names_map_.end();
186 } 186 }
OLDNEW
« no previous file with comments | « components/prefs/overlay_user_pref_store.h ('k') | components/prefs/overlay_user_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698