| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
 | 
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
 | 
| index 09c18a9faaf9ffbcc67c00996d5c67f422aad159..24967eb5bf9ff7d6e0e8cb35e68c80a8ea942db1 100644
 | 
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
 | 
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
 | 
| @@ -387,6 +387,17 @@ void LocationBarView::ShowStarBubble(const GURL& url, bool newly_bookmarked) {
 | 
|                                    profile_, url, newly_bookmarked);
 | 
|  }
 | 
|  
 | 
| +gfx::Point LocationBarView::GetLocationEntryOrigin() const {
 | 
| +  gfx::Point origin(location_entry_view_->bounds().origin());
 | 
| +  // If the UI layout is RTL, the coordinate system is not transformed and
 | 
| +  // therefore we need to adjust the X coordinate so that bubble appears on the
 | 
| +  // right hand side of the location bar.
 | 
| +  if (base::i18n::IsRTL())
 | 
| +    origin.set_x(width() - origin.x());
 | 
| +  views::View::ConvertPointToScreen(this, &origin);
 | 
| +  return origin;
 | 
| +}
 | 
| +
 | 
|  gfx::Size LocationBarView::GetPreferredSize() {
 | 
|    return gfx::Size(0, GetThemeProvider()->GetBitmapNamed(mode_ == POPUP ?
 | 
|        IDR_LOCATIONBG_POPUPMODE_CENTER : IDR_LOCATIONBG_C)->height());
 | 
| 
 |