Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 5959008: Remove wstring from l10n_util. Part 2.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 5 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 selected_keyword_decoration_->SetKeyword(short_name, is_extension_keyword); 673 selected_keyword_decoration_->SetKeyword(short_name, is_extension_keyword);
674 selected_keyword_decoration_->SetImage(GetKeywordImage(keyword)); 674 selected_keyword_decoration_->SetImage(GetKeywordImage(keyword));
675 } else if (toolbar_model_->GetSecurityLevel() == ToolbarModel::EV_SECURE) { 675 } else if (toolbar_model_->GetSecurityLevel() == ToolbarModel::EV_SECURE) {
676 // Switch from location icon to show the EV bubble instead. 676 // Switch from location icon to show the EV bubble instead.
677 location_icon_decoration_->SetVisible(false); 677 location_icon_decoration_->SetVisible(false);
678 ev_bubble_decoration_->SetVisible(true); 678 ev_bubble_decoration_->SetVisible(true);
679 679
680 std::wstring label(toolbar_model_->GetEVCertName()); 680 std::wstring label(toolbar_model_->GetEVCertName());
681 ev_bubble_decoration_->SetFullLabel(base::SysWideToNSString(label)); 681 ev_bubble_decoration_->SetFullLabel(base::SysWideToNSString(label));
682 } else if (!keyword.empty() && is_keyword_hint) { 682 } else if (!keyword.empty() && is_keyword_hint) {
683 keyword_hint_decoration_->SetKeyword(short_name, is_extension_keyword); 683 keyword_hint_decoration_->SetKeyword(WideToUTF16Hack(short_name),
684 is_extension_keyword);
684 keyword_hint_decoration_->SetVisible(true); 685 keyword_hint_decoration_->SetVisible(true);
685 } 686 }
686 687
687 // These need to change anytime the layout changes. 688 // These need to change anytime the layout changes.
688 // TODO(shess): Anytime the field editor might have changed, the 689 // TODO(shess): Anytime the field editor might have changed, the
689 // cursor rects almost certainly should have changed. The tooltips 690 // cursor rects almost certainly should have changed. The tooltips
690 // might change even when the rects don't change. 691 // might change even when the rects don't change.
691 [field_ resetFieldEditorFrameIfNeeded]; 692 [field_ resetFieldEditorFrameIfNeeded];
692 [field_ updateCursorAndToolTipRects]; 693 [field_ updateCursorAndToolTipRects];
693 694
694 [field_ setNeedsDisplay:YES]; 695 [field_ setNeedsDisplay:YES];
695 } 696 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698