| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
|
| index 82305ab109daa1db0142f4d4fc70ea0e2c61a2aa..571d7b3f56ec9683bbaf43ed9000ad45c6ec4975 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm
|
| @@ -10,7 +10,6 @@
|
| #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
|
| #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h"
|
| #include "components/bookmarks/browser/bookmark_model.h"
|
| -#include "components/prefs/pref_service.h"
|
| #include "components/url_formatter/url_fixer.h"
|
| #include "components/user_prefs/user_prefs.h"
|
|
|
| @@ -66,11 +65,8 @@ using bookmarks::BookmarkNode;
|
| // from an "Add Page..." item in a context menu.
|
| if (node_) {
|
| [self setInitialName:base::SysUTF16ToNSString(node_->GetTitle())];
|
| - PrefService* prefs = [self profile] ?
|
| - user_prefs::UserPrefs::Get([self profile]) :
|
| - NULL;
|
| base::string16 urlString =
|
| - chrome::FormatBookmarkURLForDisplay(node_->url(), prefs);
|
| + chrome::FormatBookmarkURLForDisplay(node_->url());
|
| initialUrl_.reset([base::SysUTF16ToNSString(urlString) retain]);
|
| } else {
|
| GURL url = [self url];
|
|
|