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 c8278c14f710a34200ad76345c0c53096f009784..4d3f9a9329424105717076d8e6d93349bb673c7d 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc |
@@ -23,6 +23,8 @@ |
#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.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" |
@@ -827,8 +829,10 @@ void OmniboxEditModel::OpenMatch(AutocompleteMatch match, |
} |
} |
- if (match.starred) |
- RecordBookmarkLaunch(NULL, BOOKMARK_LAUNCH_LOCATION_OMNIBOX); |
+ if (match.starred) { |
+ BookmarkModel* model = BookmarkModelFactory::GetForProfile(profile_); |
+ RecordBookmarkLaunch(model, NULL, BOOKMARK_LAUNCH_LOCATION_OMNIBOX); |
+ } |
} |
bool OmniboxEditModel::AcceptKeyword(EnteredKeywordModeMethod entered_method) { |