summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_manager_view.cc
diff options
context:
space:
mode:
authordantasse@chromium.org <dantasse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 17:40:09 +0000
committerdantasse@chromium.org <dantasse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 17:40:09 +0000
commit1fcca9babb9af32eb06907b4389f55fcc0147337 (patch)
tree7913db3edb6dd024b1939b3c05935ddf15ad85d5 /chrome/browser/views/bookmark_manager_view.cc
parent1717246fe78714112ebb4c7b581b8d49a2d34c44 (diff)
downloadchromium_src-1fcca9babb9af32eb06907b4389f55fcc0147337.zip
chromium_src-1fcca9babb9af32eb06907b4389f55fcc0147337.tar.gz
chromium_src-1fcca9babb9af32eb06907b4389f55fcc0147337.tar.bz2
Fix for bug 26397: Bookmark manager in Incognito mode doesn't show Sync Bookmarks button
The bug exists because the BookmarkManagerView checks the profile to see if it has a ProfileSyncService set up to see whether it should show the "Sync Bookmarks" button. Incognito profiles do not have a ProfileSyncService, even if the corresponding "original profile" has a PSS. So the fix is to check the original profile (here called "profile_"), not the profile. This is already fixed in Linux (bookmark_manager_gtk.cc). Also, all native versions are scheduled to be replaced by a common bookmark manager soon. BUG=26397 TEST=manual Review URL: http://codereview.chromium.org/574022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_manager_view.cc')
-rw-r--r--chrome/browser/views/bookmark_manager_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.cc b/chrome/browser/views/bookmark_manager_view.cc
index 18e9fb2..7e8c8d3 100644
--- a/chrome/browser/views/bookmark_manager_view.cc
+++ b/chrome/browser/views/bookmark_manager_view.cc
@@ -242,7 +242,7 @@ BookmarkManagerView::BookmarkManagerView(Profile* profile)
if (!bookmark_model->IsLoaded())
bookmark_model->AddObserver(this);
- if (profile->GetProfileSyncService()) {
+ if (profile_->GetProfileSyncService()) {
sync_service_ = profile_->GetProfileSyncService();
sync_service_->AddObserver(this);
UpdateSyncStatus();