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

Side by Side Diff: net/base/escape.cc

Issue 7149008: Cleanup: base/scoped_ptr.h -> base/memory/scoped_ptr.h. (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix nits Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « gpu/gles2_conform_support/egl/display.h ('k') | net/curvecp/client_packetizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "net/base/escape.h" 5 #include "net/base/escape.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/string_piece.h" 11 #include "base/string_piece.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "base/utf_offset_string_conversions.h" 14 #include "base/utf_offset_string_conversions.h"
15 15
16 namespace { 16 namespace {
17 17
18 static const char* const kHexString = "0123456789ABCDEF"; 18 static const char* const kHexString = "0123456789ABCDEF";
19 inline char IntToHex(int i) { 19 inline char IntToHex(int i) {
20 DCHECK_GE(i, 0) << i << " not a hex value"; 20 DCHECK_GE(i, 0) << i << " not a hex value";
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 return; 380 return;
381 } 381 }
382 if (offset <= (location + 2)) { 382 if (offset <= (location + 2)) {
383 offset = string16::npos; 383 offset = string16::npos;
384 return; 384 return;
385 } 385 }
386 adjusted_offset -= 2; 386 adjusted_offset -= 2;
387 } 387 }
388 offset = adjusted_offset; 388 offset = adjusted_offset;
389 } 389 }
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/display.h ('k') | net/curvecp/client_packetizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698