Initialize user_gesture_observed_ in NavigationController constructor.
BUG=18268
TEST=run the included test under valgrind without the navigation_controller.cc change, then with. The memcheck condititional jump error shouldn't fire with the fix.
Review URL: http://codereview.chromium.org/220002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27105 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc
index 4a4afbed..82210ed 100644
--- a/chrome/browser/tab_contents/navigation_controller.cc
+++ b/chrome/browser/tab_contents/navigation_controller.cc
@@ -125,7 +125,8 @@
tab_contents_(contents),
max_restored_page_id_(-1),
ALLOW_THIS_IN_INITIALIZER_LIST(ssl_manager_(this)),
- needs_reload_(false) {
+ needs_reload_(false),
+ user_gesture_observed_(false) {
DCHECK(profile_);
}