diff options
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_utils.cc')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_utils.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc index 3d4b806..aef0203 100644 --- a/chrome/browser/bookmarks/bookmark_utils.cc +++ b/chrome/browser/bookmarks/bookmark_utils.cc @@ -77,8 +77,9 @@ class NewBrowserPageNavigator : public PageNavigator { const GURL& referrer, WindowOpenDisposition disposition, content::PageTransition transition) OVERRIDE { - return OpenURL(OpenURLParams(url, referrer, disposition, transition, - false)); + DCHECK(referrer.is_empty()); + return OpenURL(OpenURLParams(url, content::Referrer(), disposition, + transition, false)); } virtual TabContents* OpenURL(const OpenURLParams& params) OVERRIDE { @@ -155,8 +156,9 @@ void OpenAllImpl(const BookmarkNode* node, disposition = NEW_BACKGROUND_TAB; else disposition = initial_disposition; - (*navigator)->OpenURL(OpenURLParams(node->url(), GURL(), disposition, - content::PAGE_TRANSITION_AUTO_BOOKMARK, false)); + (*navigator)->OpenURL(OpenURLParams(node->url(), content::Referrer(), + disposition, content::PAGE_TRANSITION_AUTO_BOOKMARK, + false)); if (!*opened_url) { *opened_url = true; // We opened the first URL which may have opened a new window or clobbered |