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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 10867038: A simple version of search term replacement for testing . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added whitespace Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index 6ab593b9ba7815da5cc19f7fc456e20de1f1f3a4..16609ba37f269b19ff8f81f7eaf513685e1009b9 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -404,7 +404,7 @@ void LocationBarViewMac::SetPreviewEnabledPageAction(
return;
decoration->set_preview_enabled(preview_enabled);
- decoration->UpdateVisibility(contents, GURL(toolbar_model_->GetText()));
+ decoration->UpdateVisibility(contents, toolbar_model_->GetURL());
}
NSRect LocationBarViewMac::GetPageActionFrame(ExtensionAction* page_action) {
@@ -653,7 +653,7 @@ void LocationBarViewMac::RefreshPageActionDecorations() {
}
}
- GURL url = GURL(toolbar_model_->GetText());
+ GURL url = toolbar_model_->GetURL();
for (size_t i = 0; i < page_action_decorations_.size(); ++i) {
page_action_decorations_[i]->UpdateVisibility(
toolbar_model_->input_in_progress() ?
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698