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

Side by Side Diff: ios/chrome/browser/browser_state/browser_state_info_cache.cc

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/browser_state_info_cache.h" 5 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "base/i18n/case_conversion.h" 11 #include "base/i18n/case_conversion.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "base/prefs/pref_registry_simple.h" 14 #include "base/prefs/pref_registry_simple.h"
13 #include "base/prefs/scoped_user_pref_update.h" 15 #include "base/prefs/scoped_user_pref_update.h"
14 #include "base/values.h" 16 #include "base/values.h"
15 #include "ios/chrome/browser/browser_state/browser_state_info_cache_observer.h" 17 #include "ios/chrome/browser/browser_state/browser_state_info_cache_observer.h"
16 #include "ios/chrome/browser/pref_names.h" 18 #include "ios/chrome/browser/pref_names.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 const base::FilePath& browser_state_path) const { 200 const base::FilePath& browser_state_path) const {
199 DCHECK(user_data_dir_ == browser_state_path.DirName()); 201 DCHECK(user_data_dir_ == browser_state_path.DirName());
200 base::FilePath base_name = browser_state_path.BaseName(); 202 base::FilePath base_name = browser_state_path.BaseName();
201 return base_name.MaybeAsASCII(); 203 return base_name.MaybeAsASCII();
202 } 204 }
203 205
204 void BrowserStateInfoCache::AddBrowserStateCacheKey(const std::string& key) { 206 void BrowserStateInfoCache::AddBrowserStateCacheKey(const std::string& key) {
205 sorted_keys_.insert( 207 sorted_keys_.insert(
206 std::upper_bound(sorted_keys_.begin(), sorted_keys_.end(), key), key); 208 std::upper_bound(sorted_keys_.begin(), sorted_keys_.end(), key), key);
207 } 209 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698