| Index: chrome/browser/ui/webui/web_ui_util.cc
|
| diff --git a/chrome/browser/ui/webui/web_ui_util.cc b/chrome/browser/ui/webui/web_ui_util.cc
|
| index ee854acfe214e0254f40afbf3765e3f5d3bce7da..b6f49b33c191f5be028829a0205fac852acbce27 100644
|
| --- a/chrome/browser/ui/webui/web_ui_util.cc
|
| +++ b/chrome/browser/ui/webui/web_ui_util.cc
|
| @@ -7,6 +7,9 @@
|
| #include <vector>
|
|
|
| #include "base/base64.h"
|
| +#include "base/string_util.h"
|
| +#include "chrome/common/url_constants.h"
|
| +#include "googleurl/src/gurl.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/gfx/codec/png_codec.h"
|
|
|
| @@ -39,4 +42,10 @@ std::string GetImageDataUrlFromResource(int res) {
|
| return str_url;
|
| }
|
|
|
| +bool ChromeURLHostEquals(const GURL& url, const char* host) {
|
| + return (url.SchemeIs(chrome::kChromeUIScheme) ||
|
| + url.SchemeIs(chrome::kAboutScheme)) &&
|
| + LowerCaseEqualsASCII(url.host(), host);
|
| +}
|
| +
|
| } // namespace web_ui_util
|
|
|