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

Side by Side Diff: content/test/test_content_client.cc

Issue 13892006: content: Update the include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « content/shell/shell_mac.mm ('k') | no next file » | 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) 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/test/test_content_client.h" 5 #include "content/test/test_content_client.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/string_piece.h" 11 #include "base/strings/string_piece.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 TestContentClient::TestContentClient() 15 TestContentClient::TestContentClient()
16 : data_pack_(ui::SCALE_FACTOR_100P) { 16 : data_pack_(ui::SCALE_FACTOR_100P) {
17 // content_resources.pak is not built on iOS as it is not required. 17 // content_resources.pak is not built on iOS as it is not required.
18 #if !defined(OS_IOS) 18 #if !defined(OS_IOS)
19 base::FilePath content_resources_pack_path; 19 base::FilePath content_resources_pack_path;
20 #if defined(OS_ANDROID) 20 #if defined(OS_ANDROID)
21 // on Android all pak files are inside the paks folder. 21 // on Android all pak files are inside the paks folder.
(...skipping 18 matching lines...) Expand all
40 40
41 base::StringPiece TestContentClient::GetDataResource( 41 base::StringPiece TestContentClient::GetDataResource(
42 int resource_id, 42 int resource_id,
43 ui::ScaleFactor scale_factor) const { 43 ui::ScaleFactor scale_factor) const {
44 base::StringPiece resource; 44 base::StringPiece resource;
45 data_pack_.GetStringPiece(resource_id, &resource); 45 data_pack_.GetStringPiece(resource_id, &resource);
46 return resource; 46 return resource;
47 } 47 }
48 48
49 } // namespace content 49 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698