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

Unified Diff: chrome/browser/sync/test/integration/bookmarks_helper.cc

Issue 12315071: Revert 184352 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/bookmarks_helper.cc
===================================================================
--- chrome/browser/sync/test/integration/bookmarks_helper.cc (revision 184354)
+++ chrome/browser/sync/test/integration/bookmarks_helper.cc (working copy)
@@ -426,7 +426,7 @@
return NULL;
}
const BookmarkNode* result = GetBookmarkModel(profile)->
- AddURL(parent, index, base::WideToUTF16(title), url);
+ AddURL(parent, index, WideToUTF16(title), url);
if (!result) {
LOG(ERROR) << "Could not add bookmark " << title << " to Profile "
<< profile;
@@ -436,7 +436,7 @@
const BookmarkNode* v_parent = NULL;
FindNodeInVerifier(GetBookmarkModel(profile), parent, &v_parent);
const BookmarkNode* v_node = GetVerifierBookmarkModel()->
- AddURL(v_parent, index, base::WideToUTF16(title), url);
+ AddURL(v_parent, index, WideToUTF16(title), url);
if (!v_node) {
LOG(ERROR) << "Could not add bookmark " << title << " to the verifier";
return NULL;
@@ -467,8 +467,7 @@
return NULL;
}
const BookmarkNode* result =
- GetBookmarkModel(profile)->AddFolder(parent, index,
- base::WideToUTF16(title));
+ GetBookmarkModel(profile)->AddFolder(parent, index, WideToUTF16(title));
EXPECT_TRUE(result);
if (!result) {
LOG(ERROR) << "Could not add folder " << title << " to Profile "
@@ -479,7 +478,7 @@
const BookmarkNode* v_parent = NULL;
FindNodeInVerifier(GetBookmarkModel(profile), parent, &v_parent);
const BookmarkNode* v_node = GetVerifierBookmarkModel()->AddFolder(
- v_parent, index, base::WideToUTF16(title));
+ v_parent, index, WideToUTF16(title));
if (!v_node) {
LOG(ERROR) << "Could not add folder " << title << " to the verifier";
return NULL;
@@ -498,9 +497,9 @@
if (test()->use_verifier()) {
const BookmarkNode* v_node = NULL;
FindNodeInVerifier(GetBookmarkModel(profile), node, &v_node);
- GetVerifierBookmarkModel()->SetTitle(v_node, base::WideToUTF16(new_title));
+ GetVerifierBookmarkModel()->SetTitle(v_node, WideToUTF16(new_title));
}
- GetBookmarkModel(profile)->SetTitle(node, base::WideToUTF16(new_title));
+ GetBookmarkModel(profile)->SetTitle(node, WideToUTF16(new_title));
}
void SetFavicon(int profile,
@@ -692,13 +691,13 @@
int CountBookmarksWithTitlesMatching(int profile, const std::wstring& title) {
return CountNodesWithTitlesMatching(GetBookmarkModel(profile),
BookmarkNode::URL,
- base::WideToUTF16(title));
+ WideToUTF16(title));
}
int CountFoldersWithTitlesMatching(int profile, const std::wstring& title) {
return CountNodesWithTitlesMatching(GetBookmarkModel(profile),
BookmarkNode::FOLDER,
- base::WideToUTF16(title));
+ WideToUTF16(title));
}
gfx::Image CreateFavicon(SkColor color) {

Powered by Google App Engine
This is Rietveld 408576698