| Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| index c9391b794385ba53d7d761227600fe31b5034252..68e873e7f5f6408967780d901a288bca4adaa248 100644
|
| --- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| +++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
| @@ -23,6 +23,7 @@
|
| #include "chrome/browser/autocomplete/history_url_provider.h"
|
| #include "chrome/browser/autocomplete/keyword_provider.h"
|
| #include "chrome/browser/autocomplete/search_provider.h"
|
| +#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| #include "chrome/browser/bookmarks/bookmark_stats.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/command_updater.h"
|
| @@ -54,6 +55,7 @@
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| +#include "components/bookmarks/browser/bookmark_model.h"
|
| #include "components/google/core/browser/google_url_tracker.h"
|
| #include "components/metrics/proto/omnibox_event.pb.h"
|
| #include "components/search_engines/template_url.h"
|
| @@ -852,7 +854,8 @@ void OmniboxEditModel::OpenMatch(AutocompleteMatch match,
|
| ignore_result(observer.release()); // The observer will delete itself.
|
| }
|
|
|
| - if (match.starred)
|
| + BookmarkModel* bookmark_model = BookmarkModelFactory::GetForProfile(profile_);
|
| + if (bookmark_model && bookmark_model->IsBookmarked(match.destination_url))
|
| RecordBookmarkLaunch(NULL, BOOKMARK_LAUNCH_LOCATION_OMNIBOX);
|
| }
|
|
|
|
|