bookmarks: Remove a bunch of unnecessary BookmarkModelFactory::GetForProfile() calls.
commitec4bd88bad1c19db9b7c311475608a8d7a2e1718
authortfarina <tfarina@chromium.org>
Tue, 21 Jul 2015 20:36:14 +0000 (21 13:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 21 Jul 2015 20:37:53 +0000 (21 20:37 +0000)
tree4d40daadb5bbb07f52c23ea7719fd2d97d878ef7
parent43cc782f8ca69bcc08c29c42345242ef9eb0db59
bookmarks: Remove a bunch of unnecessary BookmarkModelFactory::GetForProfile() calls.

Instead of making a series of calls to it, keep the model in variable
and reuse it.

BUG=None
TEST=unit_tests --gtest_filter=BookmarkBarViewTest.*
R=sky@chromium.org

Review URL: https://codereview.chromium.org/1246833004

Cr-Commit-Position: refs/heads/master@{#339740}
chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc