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

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

Issue 10827161: Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkModel to a PKS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 const BookmarkNode* GetOtherNode(int index) { 268 const BookmarkNode* GetOtherNode(int index) {
269 return GetBookmarkModel(index)->other_node(); 269 return GetBookmarkModel(index)->other_node();
270 } 270 }
271 271
272 const BookmarkNode* GetSyncedBookmarksNode(int index) { 272 const BookmarkNode* GetSyncedBookmarksNode(int index) {
273 return GetBookmarkModel(index)->mobile_node(); 273 return GetBookmarkModel(index)->mobile_node();
274 } 274 }
275 275
276 BookmarkModel* GetVerifierBookmarkModel() { 276 BookmarkModel* GetVerifierBookmarkModel() {
277 return test()->verifier()->GetBookmarkModel(); 277 return BookmarkModelFactory::GetForProfile(test()->verifier());
278 } 278 }
279 279
280 const BookmarkNode* AddURL(int profile, 280 const BookmarkNode* AddURL(int profile,
281 const std::wstring& title, 281 const std::wstring& title,
282 const GURL& url) { 282 const GURL& url) {
283 return AddURL(profile, GetBookmarkBarNode(profile), 0, title, url); 283 return AddURL(profile, GetBookmarkBarNode(profile), 0, title, url);
284 } 284 }
285 285
286 const BookmarkNode* AddURL(int profile, 286 const BookmarkNode* AddURL(int profile,
287 int index, 287 int index,
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 600
601 std::wstring IndexedSubfolderName(int i) { 601 std::wstring IndexedSubfolderName(int i) {
602 return StringPrintf(L"Subfolder Name %d", i); 602 return StringPrintf(L"Subfolder Name %d", i);
603 } 603 }
604 604
605 std::wstring IndexedSubsubfolderName(int i) { 605 std::wstring IndexedSubsubfolderName(int i) {
606 return StringPrintf(L"Subsubfolder Name %d", i); 606 return StringPrintf(L"Subsubfolder Name %d", i);
607 } 607 }
608 608
609 } // namespace bookmarks_helper 609 } // namespace bookmarks_helper
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_extension_api.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698