| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/app_list/search/search_webstore_result.h" | 5 #include "chrome/browser/ui/app_list/search/search_webstore_result.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 9 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 10 #include "chrome/browser/ui/app_list/search/search_util.h" | 10 #include "chrome/browser/ui/app_list/search/search_util.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 launch_url_, | 51 launch_url_, |
| 52 extension_urls::kWebstoreSourceField, | 52 extension_urls::kWebstoreSourceField, |
| 53 extension_urls::kLaunchSourceAppListSearch); | 53 extension_urls::kLaunchSourceAppListSearch); |
| 54 | 54 |
| 55 controller_->OpenURL(profile_, | 55 controller_->OpenURL(profile_, |
| 56 store_url, | 56 store_url, |
| 57 ui::PAGE_TRANSITION_LINK, | 57 ui::PAGE_TRANSITION_LINK, |
| 58 ui::DispositionFromEventFlags(event_flags)); | 58 ui::DispositionFromEventFlags(event_flags)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 scoped_ptr<SearchResult> SearchWebstoreResult::Duplicate() const { | 61 std::unique_ptr<SearchResult> SearchWebstoreResult::Duplicate() const { |
| 62 return scoped_ptr<SearchResult>( | 62 return std::unique_ptr<SearchResult>( |
| 63 new SearchWebstoreResult(profile_, controller_, query_)); | 63 new SearchWebstoreResult(profile_, controller_, query_)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace app_list | 66 } // namespace app_list |
| OLD | NEW |