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

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: fix android build break 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/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 4d16bc5033a25c712b7784a7aabff5084053e3fb..2485161a2b285fa1019001397c92d7fea6b67ace 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -383,9 +383,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 {
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.h ('k') | chrome/browser/ui/views/search_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698