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

Side by Side Diff: chrome/browser/ui/app_list/search/webstore/webstore_result.h

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 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 28 matching lines...) Expand all
39 ~WebstoreResult() override; 39 ~WebstoreResult() override;
40 40
41 const std::string& app_id() const { return app_id_; } 41 const std::string& app_id() const { return app_id_; }
42 const GURL& icon_url() const { return icon_url_; } 42 const GURL& icon_url() const { return icon_url_; }
43 extensions::Manifest::Type item_type() const { return item_type_; } 43 extensions::Manifest::Type item_type() const { return item_type_; }
44 bool is_paid() const { return is_paid_; } 44 bool is_paid() const { return is_paid_; }
45 45
46 // SearchResult overrides: 46 // SearchResult overrides:
47 void Open(int event_flags) override; 47 void Open(int event_flags) override;
48 void InvokeAction(int action_index, int event_flags) override; 48 void InvokeAction(int action_index, int event_flags) override;
49 scoped_ptr<SearchResult> Duplicate() const override; 49 std::unique_ptr<SearchResult> Duplicate() const override;
50 50
51 private: 51 private:
52 // Set the initial state and start observing both InstallObserver and 52 // Set the initial state and start observing both InstallObserver and
53 // ExtensionRegistryObserver. 53 // ExtensionRegistryObserver.
54 void InitAndStartObserving(); 54 void InitAndStartObserving();
55 55
56 void UpdateActions(); 56 void UpdateActions();
57 void SetDefaultDetails(); 57 void SetDefaultDetails();
58 void OnIconLoaded(); 58 void OnIconLoaded();
59 59
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 extensions::ExtensionRegistry* extension_registry_; // Not owned. 91 extensions::ExtensionRegistry* extension_registry_; // Not owned.
92 92
93 base::WeakPtrFactory<WebstoreResult> weak_factory_; 93 base::WeakPtrFactory<WebstoreResult> weak_factory_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(WebstoreResult); 95 DISALLOW_COPY_AND_ASSIGN(WebstoreResult);
96 }; 96 };
97 97
98 } // namespace app_list 98 } // namespace app_list
99 99
100 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_ 100 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_WEBSTORE_WEBSTORE_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698