| Index: chrome/browser/ui/views/location_bar/location_bar_view.h
|
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
|
| index e96819d9db1ebf2cf8c8079e80ce5ea37f543bbf..73b843778ad737836b545d423bac19fd84291239 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.h
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
|
| @@ -9,6 +9,7 @@
|
| #include <vector>
|
|
|
| #include "base/compiler_specific.h"
|
| +#include "base/prefs/public/pref_observer.h"
|
| #include "chrome/browser/api/prefs/pref_member.h"
|
| #include "chrome/browser/extensions/extension_context_menu_model.h"
|
| #include "chrome/browser/search_engines/template_url_service_observer.h"
|
| @@ -79,7 +80,8 @@ class LocationBarView : public LocationBar,
|
| public DropdownBarHostDelegate,
|
| public chrome::search::SearchModelObserver,
|
| public TemplateURLServiceObserver,
|
| - public content::NotificationObserver {
|
| + public content::NotificationObserver,
|
| + public PrefObserver {
|
| public:
|
| // The location bar view's class name.
|
| static const char kViewClassName[];
|
| @@ -338,6 +340,10 @@ class LocationBarView : public LocationBar,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) OVERRIDE;
|
|
|
| + // Overridden from PrefObserver
|
| + virtual void OnPreferenceChanged(PrefServiceBase* service,
|
| + const std::string& pref_name) OVERRIDE;
|
| +
|
| // Returns the height of the control without the top and bottom
|
| // edges(i.e. the height of the edit control inside). If
|
| // |use_preferred_size| is true this will be the preferred height,
|
|
|