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

Side by Side Diff: chrome/browser/sync/test/integration/bookmarks_helper.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 years, 9 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 "chrome/browser/sync/test/integration/bookmarks_helper.h" 5 #include "chrome/browser/sync/test/integration/bookmarks_helper.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 return gfx::Image(); 729 return gfx::Image();
730 730
731 full_path = full_path.AppendASCII("sync").AppendASCII(path); 731 full_path = full_path.AppendASCII("sync").AppendASCII(path);
732 std::string contents; 732 std::string contents;
733 file_util::ReadFileToString(full_path, &contents); 733 file_util::ReadFileToString(full_path, &contents);
734 return gfx::Image::CreateFrom1xPNGBytes( 734 return gfx::Image::CreateFrom1xPNGBytes(
735 reinterpret_cast<const unsigned char*>(contents.data()), contents.size()); 735 reinterpret_cast<const unsigned char*>(contents.data()), contents.size());
736 } 736 }
737 737
738 std::string IndexedURL(int i) { 738 std::string IndexedURL(int i) {
739 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i); 739 return base::StringPrintf("http://www.host.ext:1234/path/filename/%d", i);
740 } 740 }
741 741
742 std::wstring IndexedURLTitle(int i) { 742 std::wstring IndexedURLTitle(int i) {
743 return StringPrintf(L"URL Title %d", i); 743 return base::StringPrintf(L"URL Title %d", i);
744 } 744 }
745 745
746 std::wstring IndexedFolderName(int i) { 746 std::wstring IndexedFolderName(int i) {
747 return StringPrintf(L"Folder Name %d", i); 747 return base::StringPrintf(L"Folder Name %d", i);
748 } 748 }
749 749
750 std::wstring IndexedSubfolderName(int i) { 750 std::wstring IndexedSubfolderName(int i) {
751 return StringPrintf(L"Subfolder Name %d", i); 751 return base::StringPrintf(L"Subfolder Name %d", i);
752 } 752 }
753 753
754 std::wstring IndexedSubsubfolderName(int i) { 754 std::wstring IndexedSubsubfolderName(int i) {
755 return StringPrintf(L"Subsubfolder Name %d", i); 755 return base::StringPrintf(L"Subsubfolder Name %d", i);
756 } 756 }
757 757
758 } // namespace bookmarks_helper 758 } // namespace bookmarks_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698