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

Unified Diff: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc

Issue 200493006: Move the ShortcutsBackend from history to autocomplete so that it can fully (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/omnibox/omnibox_navigation_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc
===================================================================
--- chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc (revision 257281)
+++ chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc (working copy)
@@ -5,10 +5,10 @@
#include "chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/autocomplete/shortcuts_backend.h"
+#include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
#include "chrome/browser/history/history_service.h"
#include "chrome/browser/history/history_service_factory.h"
-#include "chrome/browser/history/shortcuts_backend.h"
-#include "chrome/browser/history/shortcuts_backend_factory.h"
#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -67,10 +67,10 @@
WindowOpenDisposition disposition) {
// Tell the shortcuts backend to remove the shortcut it added for the original
// search and instead add one reflecting this navigation.
- scoped_refptr<history::ShortcutsBackend> shortcuts_backend(
+ scoped_refptr<ShortcutsBackend> shortcuts_backend(
ShortcutsBackendFactory::GetForProfile(profile_));
if (shortcuts_backend) { // May be NULL in incognito.
- shortcuts_backend->DeleteShortcutsWithUrl(search_url_);
+ shortcuts_backend->DeleteShortcutsWithURL(search_url_);
shortcuts_backend->AddOrUpdateShortcut(text_, match_);
}
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/omnibox/omnibox_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698