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

Unified Diff: chrome/browser/ui/views/toolbar_view.cc

Issue 10816027: alternate ntp: toolbar background and separator animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address dhollowa's comments 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
Index: chrome/browser/ui/views/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index ef7a3729961fd853d1c8f83717126f4fa09de16e..bc69bf4563477b08f9c094d11cfc21fca8b427f9 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -488,10 +488,11 @@ void ToolbarView::OnInputInProgress(bool in_progress) {
////////////////////////////////////////////////////////////////////////////////
// ToolbarView, chrome::search::SearchModelObserver implementation:
-void ToolbarView::ModeChanged(const chrome::search::Mode& mode) {
+void ToolbarView::ModeChanged(const chrome::search::Mode& old_mode,
+ const chrome::search::Mode& new_mode) {
// Layout location bar to determine the visibility of each of its child
// view based on toolbar mode change.
- if (mode.is_ntp())
+ if (new_mode.is_ntp())
location_bar_->Layout();
Layout();

Powered by Google App Engine
This is Rietveld 408576698