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

Side by Side Diff: chrome/browser/extensions/extension_error_controller.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EXTENSIONS_EXTENSION_ERROR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_CONTROLLER_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/extension_error_ui.h" 11 #include "chrome/browser/extensions/extension_error_ui.h"
11 #include "extensions/common/extension_set.h" 12 #include "extensions/common/extension_set.h"
12 13
13 namespace content { 14 namespace content {
14 class BrowserContext; 15 class BrowserContext;
15 } 16 }
16 17
17 namespace extensions { 18 namespace extensions {
18 19
19 // The controller for the ExtensionErrorUI. This examines extensions for any 20 // The controller for the ExtensionErrorUI. This examines extensions for any
(...skipping 25 matching lines...) Expand all
45 void IdentifyAlertableExtensions(); 46 void IdentifyAlertableExtensions();
46 47
47 // TODO(rdevlin.cronin): We never seem to use |external_extensions_| here, 48 // TODO(rdevlin.cronin): We never seem to use |external_extensions_| here,
48 // but we do warn about them. Investigate more. 49 // but we do warn about them. Investigate more.
49 ExtensionSet external_extensions_; 50 ExtensionSet external_extensions_;
50 51
51 // The extensions that are blacklisted and need user approval. 52 // The extensions that are blacklisted and need user approval.
52 ExtensionSet blacklisted_extensions_; 53 ExtensionSet blacklisted_extensions_;
53 54
54 // The UI component of this controller. 55 // The UI component of this controller.
55 scoped_ptr<ExtensionErrorUI> error_ui_; 56 std::unique_ptr<ExtensionErrorUI> error_ui_;
56 57
57 // The BrowserContext with which we are associated. 58 // The BrowserContext with which we are associated.
58 content::BrowserContext* browser_context_; 59 content::BrowserContext* browser_context_;
59 60
60 // Whether or not this is the first run. If it is, we avoid noisy errors, and 61 // Whether or not this is the first run. If it is, we avoid noisy errors, and
61 // silently acknowledge blacklisted extensions. 62 // silently acknowledge blacklisted extensions.
62 bool is_first_run_; 63 bool is_first_run_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorController); 65 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorController);
65 }; 66 };
66 67
67 } // namespace extensions 68 } // namespace extensions
68 69
69 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_CONTROLLER_H_ 70 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui_browsertest.cc ('k') | chrome/browser/extensions/extension_error_ui_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698