| Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| index e0501067a6263f01b3d8e0f4ff0ba463a371a738..4304a6b5b644b383cf154355e633e2479bf80bdd 100644
|
| --- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| @@ -33,6 +33,7 @@
|
| #include "chrome/browser/ui/browser_tabstrip.h"
|
| #include "chrome/browser/ui/chrome_pages.h"
|
| #include "chrome/browser/ui/search/search_model.h"
|
| +#include "chrome/browser/ui/search/search_ui.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/browser/ui/view_ids.h"
|
| #include "chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.h"
|
| @@ -323,11 +324,10 @@ void RecordAppLaunch(Profile* profile, GURL url) {
|
|
|
| int GetSearchNtpMargin(int full_width) {
|
| // Horizontally center bookmark bar.
|
| - const int kMaxNtpBookmarkBarWidth = 720;
|
| - const int kNtpBookmarkBarWidthPadding = 130;
|
| - int width = full_width - 2 * kNtpBookmarkBarWidthPadding;
|
| - if (width > kMaxNtpBookmarkBarWidth)
|
| - width = kMaxNtpBookmarkBarWidth;
|
| + int width =
|
| + full_width - 2 * chrome::search::kHorizontalPaddingForBottomBookmarkBar;
|
| + if (width > chrome::search::kMaxWidthForBottomBookmarkBar)
|
| + width = chrome::search::kMaxWidthForBottomBookmarkBar;
|
| return (full_width - width) / 2;
|
| }
|
|
|
|
|