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

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

Issue 10449042: Remove wchar/wstring version of StringPrintf. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
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/rand_util.h" 8 #include "base/rand_util.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 std::vector<unsigned char> favicon; 579 std::vector<unsigned char> favicon;
580 gfx::PNGCodec::EncodeBGRASkBitmap(bmp, false, &favicon); 580 gfx::PNGCodec::EncodeBGRASkBitmap(bmp, false, &favicon);
581 return favicon; 581 return favicon;
582 } 582 }
583 583
584 std::string IndexedURL(int i) { 584 std::string IndexedURL(int i) {
585 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i); 585 return StringPrintf("http://www.host.ext:1234/path/filename/%d", i);
586 } 586 }
587 587
588 std::wstring IndexedURLTitle(int i) { 588 std::wstring IndexedURLTitle(int i) {
589 return StringPrintf(L"URL Title %d", i); 589 return ASCIIToWide(StringPrintf("URL Title %d", i));
590 } 590 }
591 591
592 std::wstring IndexedFolderName(int i) { 592 std::wstring IndexedFolderName(int i) {
593 return StringPrintf(L"Folder Name %d", i); 593 return ASCIIToWide(StringPrintf("Folder Name %d", i));
594 } 594 }
595 595
596 std::wstring IndexedSubfolderName(int i) { 596 std::wstring IndexedSubfolderName(int i) {
597 return StringPrintf(L"Subfolder Name %d", i); 597 return ASCIIToWide(StringPrintf("Subfolder Name %d", i));
598 } 598 }
599 599
600 std::wstring IndexedSubsubfolderName(int i) { 600 std::wstring IndexedSubsubfolderName(int i) {
601 return StringPrintf(L"Subsubfolder Name %d", i); 601 return ASCIIToWide(StringPrintf("Subsubfolder Name %d", i));
602 } 602 }
603 603
604 } // namespace bookmarks_helper 604 } // namespace bookmarks_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698