| Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| index df81afd3b07eed97e85f4d8383d4ddf29f459474..293c33b0c5f4f524510dea583abf0c00df3296aa 100644
|
| --- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| @@ -22,6 +22,7 @@
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| +#include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "chrome/browser/themes/theme_service.h"
|
| #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -1255,8 +1256,8 @@ void BookmarkBarView::BookmarkNodeAddedImpl(BookmarkModel* model,
|
| }
|
| DCHECK(index >= 0 && index <= GetBookmarkButtonCount());
|
| const BookmarkNode* node = parent->GetChild(index);
|
| - ProfileSyncService* sync_service =
|
| - browser_->profile()->GetProfileSyncService();
|
| + ProfileSyncService* sync_service(ProfileSyncServiceFactory::
|
| + GetInstance()->GetForProfile(browser_->profile()));
|
| if (!throbbing_view_ && sync_service && sync_service->SetupInProgress())
|
| StartThrobbing(node, true);
|
| AddChildViewAt(CreateBookmarkButton(node), index);
|
|
|