| Index: chrome/browser/ui/browser_util.cc
|
| diff --git a/chrome/browser/ui/browser_util.cc b/chrome/browser/ui/browser_util.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2e89ff47c76be0745424ca9822f91a2604ec9dad
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/browser_util.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/ui/browser_util.h"
|
| +
|
| +void BrowserUtil::FormatTitleForDisplay(base::string16* title) {
|
| + size_t current_index = 0;
|
| + size_t match_index;
|
| + while ((match_index = title->find(L'\n', current_index)) !=
|
| + base::string16::npos) {
|
| + title->replace(match_index, 1, base::string16());
|
| + current_index = match_index;
|
| + }
|
| +}
|
| +
|
| +#if !defined(OS_WIN)
|
| +bool BrowserUtil::IsOverscrollEnabledOnPlatform() {
|
| +#if defined(USE_AURA)
|
| + return true;
|
| +#else
|
| + return false;
|
| +#endif
|
| +}
|
| +#endif
|
| +
|
|
|