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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 10816027: alternate ntp: toolbar background and separator animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 8 years, 5 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/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 2596ef4efa4f7e01540485848f5bff4a8ced5b4c..a5e3e8f1d757baf173ea4a0cd84b0b16e06dcdb7 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -394,9 +394,10 @@ void LocationBarView::SetAnimationOffset(int offset) {
animation_offset_ = offset;
}
-void LocationBarView::ModeChanged(const chrome::search::Mode& mode) {
+void LocationBarView::ModeChanged(const chrome::search::Mode& old_mode,
+ const chrome::search::Mode& new_mode) {
#if defined(USE_AURA)
- if (mode.is_search() && mode.animate) {
+ if (new_mode.is_search() && new_mode.animate) {
// Fade in so the icons don't pop.
StartFadeAnimation();
} else {

Powered by Google App Engine
This is Rietveld 408576698