summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc')
-rw-r--r--chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index df81afd..85edaa0 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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);