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

Side by Side Diff: chrome/browser/safe_browsing/chunk_range.cc

Issue 3447008: base: Finish moving the SplitString functions from string_util.h to string_split.h (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chromeos fixes Created 10 years, 3 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Implementation of ChunkRange class. 5 // Implementation of ChunkRange class.
6 6
7 #include "chrome/browser/safe_browsing/chunk_range.h" 7 #include "chrome/browser/safe_browsing/chunk_range.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/string_split.h"
11 #include "base/string_util.h" 12 #include "base/string_util.h"
12 13
13 ChunkRange::ChunkRange(int start) : start_(start), stop_(start) { 14 ChunkRange::ChunkRange(int start) : start_(start), stop_(start) {
14 } 15 }
15 16
16 ChunkRange::ChunkRange(int start, int stop) : start_(start), stop_(stop) { 17 ChunkRange::ChunkRange(int start, int stop) : start_(start), stop_(stop) {
17 } 18 }
18 19
19 ChunkRange::ChunkRange(const ChunkRange& rhs) 20 ChunkRange::ChunkRange(const ChunkRange& rhs)
20 : start_(rhs.start()), stop_(rhs.stop()) { 21 : start_(rhs.start()), stop_(rhs.stop()) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 // Adjust our mid point. 116 // Adjust our mid point.
116 if (chunk.stop() < chunk_number) 117 if (chunk.stop() < chunk_number)
117 low = mid + 1; 118 low = mid + 1;
118 else 119 else
119 high = mid - 1; 120 high = mid - 1;
120 } 121 }
121 122
122 return false; 123 return false;
123 } 124 }
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/safe_browsing/protocol_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698