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

Side by Side Diff: chrome/browser/safe_browsing/settings_reset_prompt/extension_info.h

Issue 2701313002: Adds a modal dialog implementation of the settings reset prompt. (Closed)
Patch Set: Fix constness in mock test class Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "extensions/common/extension_id.h" 10 #include "extensions/common/extension_id.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 class Extension; 13 class Extension;
14 } // namespace extensions 14 } // namespace extensions
15 15
16 namespace safe_browsing { 16 namespace safe_browsing {
17 17
18 struct ExtensionInfo { 18 struct ExtensionInfo {
19 explicit ExtensionInfo(const extensions::Extension* extension); 19 explicit ExtensionInfo(const extensions::Extension* extension);
20 // Convenience constructor for tests.
21 ExtensionInfo(const extensions::ExtensionId& id, const std::string& name);
20 ~ExtensionInfo(); 22 ~ExtensionInfo();
21 23
22 extensions::ExtensionId id; 24 extensions::ExtensionId id;
23 std::string name; 25 std::string name;
24 }; 26 };
25 27
26 } // namespace safe_browsing 28 } // namespace safe_browsing
27 29
28 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_ 30 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_EXTENSION_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/safe_browsing/settings_reset_prompt/extension_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698