| Index: chrome/browser/ui/browser_commands.cc
|
| diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
|
| index 38cff6b408d594efa8b93cd183bc8a836b59002f..584fcbf2cd4a20670edd332511c3a139a53e5ee6 100644
|
| --- a/chrome/browser/ui/browser_commands.cc
|
| +++ b/chrome/browser/ui/browser_commands.cc
|
| @@ -174,8 +174,9 @@ void BookmarkCurrentPageInternal(Browser* browser) {
|
| WebContents* web_contents =
|
| browser->tab_strip_model()->GetActiveWebContents();
|
| GetURLAndTitleToBookmark(web_contents, &url, &title);
|
| - bool was_bookmarked = model->IsBookmarked(url);
|
| - if (!was_bookmarked && web_contents->GetBrowserContext()->IsOffTheRecord()) {
|
| + bool was_bookmarked = model->IsBookmarkedByUser(url);
|
| + if (!model->IsBookmarked(url) &&
|
| + web_contents->GetBrowserContext()->IsOffTheRecord()) {
|
| // If we're incognito the favicon may not have been saved. Save it now
|
| // so that bookmarks have an icon for the page.
|
| FaviconTabHelper::FromWebContents(web_contents)->SaveFavicon();
|
| @@ -183,7 +184,7 @@ void BookmarkCurrentPageInternal(Browser* browser) {
|
| bookmark_utils::AddIfNotBookmarked(model, url, title);
|
| // Make sure the model actually added a bookmark before showing the star. A
|
| // bookmark isn't created if the url is invalid.
|
| - if (browser->window()->IsActive() && model->IsBookmarked(url)) {
|
| + if (browser->window()->IsActive() && model->IsBookmarkedByUser(url)) {
|
| // Only show the bubble if the window is active, otherwise we may get into
|
| // weird situations where the bubble is deleted as soon as it is shown.
|
| browser->window()->ShowBookmarkBubble(url, was_bookmarked);
|
|
|