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

Side by Side Diff: chrome/browser/ui/app_list/extension_app_context_menu.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_EXTENSION_APP_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/ui/app_list/app_context_menu.h" 12 #include "chrome/browser/ui/app_list/app_context_menu.h"
13 13
14 class AppListControllerDelegate; 14 class AppListControllerDelegate;
15 class Profile; 15 class Profile;
16 16
17 namespace extensions { 17 namespace extensions {
18 class ContextMenuMatcher; 18 class ContextMenuMatcher;
19 } 19 }
20 20
21 namespace app_list { 21 namespace app_list {
(...skipping 21 matching lines...) Expand all
43 bool IsCommandIdEnabled(int command_id) const override; 43 bool IsCommandIdEnabled(int command_id) const override;
44 void ExecuteCommand(int command_id, int event_flags) override; 44 void ExecuteCommand(int command_id, int event_flags) override;
45 45
46 void set_is_platform_app(bool is_platform_app) { 46 void set_is_platform_app(bool is_platform_app) {
47 is_platform_app_ = is_platform_app; 47 is_platform_app_ = is_platform_app;
48 } 48 }
49 49
50 private: 50 private:
51 bool is_platform_app_ = false; 51 bool is_platform_app_ = false;
52 52
53 scoped_ptr<extensions::ContextMenuMatcher> extension_menu_items_; 53 std::unique_ptr<extensions::ContextMenuMatcher> extension_menu_items_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ExtensionAppContextMenu); 55 DISALLOW_COPY_AND_ASSIGN(ExtensionAppContextMenu);
56 }; 56 };
57 57
58 } // namespace app_list 58 } // namespace app_list
59 59
60 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_ 60 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_utils.cc ('k') | chrome/browser/ui/app_list/extension_app_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698