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

Unified Diff: chrome/browser/ui/app_list/search/search_webstore_result.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: 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
Index: chrome/browser/ui/app_list/search/search_webstore_result.cc
diff --git a/chrome/browser/ui/app_list/search/search_webstore_result.cc b/chrome/browser/ui/app_list/search/search_webstore_result.cc
index fa5f1b57fdb75ca7d1d8841acd0d9f38efadc75e..5a3c529dbc9778c205771fa85da99d8c7fea17d1 100644
--- a/chrome/browser/ui/app_list/search/search_webstore_result.cc
+++ b/chrome/browser/ui/app_list/search/search_webstore_result.cc
@@ -54,15 +54,11 @@ void SearchWebstoreResult::Open(int event_flags) {
chrome::Navigate(&params);
}
-void SearchWebstoreResult::InvokeAction(int action_index, int event_flags) {
+scoped_ptr<SearchResult> SearchWebstoreResult::Duplicate() {
+ return scoped_ptr<SearchResult>(new SearchWebstoreResult(profile_, query_));
}
-scoped_ptr<ChromeSearchResult> SearchWebstoreResult::Duplicate() {
- return scoped_ptr<ChromeSearchResult>(
- new SearchWebstoreResult(profile_, query_)).Pass();
-}
-
-ChromeSearchResultType SearchWebstoreResult::GetType() {
+SearchResultType SearchWebstoreResult::GetType() {
return WEBSTORE_SEARCH_RESULT;
}

Powered by Google App Engine
This is Rietveld 408576698