| Index: content/browser/renderer_host/render_view_host.cc
|
| diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
|
| index 4d9b7fd3bdc432281ca5873c40ad3896c57c0079..a7a0fc7c35a379f16796047fa7f2a67fc45c7477 100644
|
| --- a/content/browser/renderer_host/render_view_host.cc
|
| +++ b/content/browser/renderer_host/render_view_host.cc
|
| @@ -1008,8 +1008,12 @@ void RenderViewHost::OnMsgUpdateTitle(
|
| NOTREACHED() << "Renderer sent too many characters in title.";
|
| return;
|
| }
|
| -
|
| - delegate_->UpdateTitle(this, page_id, title, title_direction);
|
| + base::i18n::TextDirection dir =
|
| + title_direction == WebKit::WebTextDirectionLeftToRight ?
|
| + base::i18n::LEFT_TO_RIGHT :
|
| + base::i18n::RIGHT_TO_LEFT;
|
| + delegate_->UpdateTitle(this, page_id,
|
| + base::i18n::String16WithDirection(title, dir));
|
| }
|
|
|
| void RenderViewHost::OnMsgUpdateEncoding(const std::string& encoding_name) {
|
|
|