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

Side by Side Diff: chrome/browser/ui/app_list/search/search_webstore_result.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698