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

Unified Diff: athena/main/url_search_provider.cc

Issue 621823004: Simplifies the structure of app_list search a bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 | « athena/home/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/search/app_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/url_search_provider.cc
diff --git a/athena/main/url_search_provider.cc b/athena/main/url_search_provider.cc
index 190b95c5d685f66909c4bda26dc0d236cec1c34e..b8c43adb270729512c9ecc2f71ab4026e3905df4 100644
--- a/athena/main/url_search_provider.cc
+++ b/athena/main/url_search_provider.cc
@@ -170,7 +170,11 @@ class UrlSearchResult : public app_list::SearchResult {
virtual ~UrlSearchResult() {}
private:
- // Overriddenn from app_list::SearchResult:
+ // Overridden from app_list::SearchResult:
+ virtual scoped_ptr<app_list::SearchResult> Duplicate() override {
+ return make_scoped_ptr(new UrlSearchResult(browser_context_, match_));
+ }
+
virtual void Open(int event_flags) override {
Activity* activity = ActivityFactory::Get()->CreateWebActivity(
browser_context_, base::string16(), match_.destination_url);
« no previous file with comments | « athena/home/app_list_view_delegate.cc ('k') | chrome/browser/ui/app_list/search/app_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698