summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_commands_unittest.cc
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 23:20:37 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-01 23:20:37 +0000
commitfa50dea092b9c1982d5472d0029dc3e90f6ba3e5 (patch)
tree5f601d6625038b8d513acedb83678616fd37ecfa /chrome/browser/browser_commands_unittest.cc
parent1bb578db2735d5c8074220e9c4d7fb32d5a9f244 (diff)
downloadchromium_src-fa50dea092b9c1982d5472d0029dc3e90f6ba3e5.zip
chromium_src-fa50dea092b9c1982d5472d0029dc3e90f6ba3e5.tar.gz
chromium_src-fa50dea092b9c1982d5472d0029dc3e90f6ba3e5.tar.bz2
Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkModel to a PKS.
BUG=112525 TEST=unittests, manual TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10834099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_commands_unittest.cc')
-rw-r--r--chrome/browser/browser_commands_unittest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/browser_commands_unittest.cc b/chrome/browser/browser_commands_unittest.cc
index c0385db..4fbba9a 100644
--- a/chrome/browser/browser_commands_unittest.cc
+++ b/chrome/browser/browser_commands_unittest.cc
@@ -4,6 +4,7 @@
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/ui/browser_command_controller.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_list.h"
@@ -106,7 +107,8 @@ TEST_F(BrowserCommandsTest, BookmarkCurrentPage) {
// It should now be bookmarked in the bookmark model.
EXPECT_EQ(profile(), browser()->profile());
- EXPECT_TRUE(browser()->profile()->GetBookmarkModel()->IsBookmarked(url1));
+ EXPECT_TRUE(BookmarkModelFactory::GetForProfile(
+ browser()->profile())->IsBookmarked(url1));
}
// Tests back/forward in new tab (Control + Back/Forward button in the UI).