Commit 4c540ee5 authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

Fix a typo. TextDirection is the name of the enum, while GetTextDirection...

Fix a typo.  TextDirection is the name of the enum, while GetTextDirection returns the current text direction.  Also fixes a few lint nits.

CID=4539
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/149257

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20035 0039d316-1c4b-4281-b951-d872f2087c98
parent ce190ab7
......@@ -4,6 +4,8 @@
#include "chrome/browser/external_tab_container.h"
#include <string>
#include "app/l10n_util.h"
#include "app/win_util.h"
#include "base/logging.h"
......@@ -240,7 +242,7 @@ void ExternalTabContainer::ToolbarSizeChanged(TabContents* source,
void ExternalTabContainer::ForwardMessageToExternalHost(
const std::string& message, const std::string& origin,
const std::string& target) {
if(automation_) {
if (automation_) {
automation_->Send(
new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_,
message, origin, target));
......@@ -271,7 +273,7 @@ bool ExternalTabContainer::HandleContextMenu(const ContextMenuParams& params) {
POINT screen_pt = { params.x, params.y };
MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1);
bool rtl = l10n_util::TextDirection() == l10n_util::RIGHT_TO_LEFT;
bool rtl = l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT;
automation_->Send(
new AutomationMsg_ForwardContextMenuToExternalHost(0, tab_handle_,
external_context_menu_->GetMenuHandle(), screen_pt.x, screen_pt.y,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment