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

Side by Side Diff: content/renderer/android/address_detector.cc

Issue 16408017: Use a direct include of utf_string_conversions.h in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
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 "content/renderer/android/address_detector.h" 5 #include "content/renderer/android/address_detector.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "content/common/android/address_parser.h" 11 #include "content/common/android/address_parser.h"
12 #include "content/public/renderer/android_content_detection_prefixes.h" 12 #include "content/public/renderer/android_content_detection_prefixes.h"
13 #include "net/base/escape.h" 13 #include "net/base/escape.h"
14 14
15 namespace { 15 namespace {
16 16
17 // Maximum text length to be searched for address detection. 17 // Maximum text length to be searched for address detection.
18 static const size_t kMaxAddressLength = 250; 18 static const size_t kMaxAddressLength = 250;
19 19
20 } // anonymous namespace 20 } // anonymous namespace
(...skipping 28 matching lines...) Expand all
49 std::string* content_text) { 49 std::string* content_text) {
50 if (address_parser::FindAddress(begin, end, start_pos, end_pos)) { 50 if (address_parser::FindAddress(begin, end, start_pos, end_pos)) {
51 content_text->assign( 51 content_text->assign(
52 GetContentText(string16(begin + *start_pos, begin + *end_pos))); 52 GetContentText(string16(begin + *start_pos, begin + *end_pos)));
53 return true; 53 return true;
54 } 54 }
55 return false; 55 return false;
56 } 56 }
57 57
58 } // namespace content 58 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility_browsertest.cc ('k') | content/renderer/android/email_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698