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

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

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 #include "chrome/browser/safe_browsing/settings_reset_prompt/extension_info.h" 5 #include "chrome/browser/safe_browsing/settings_reset_prompt/extension_info.h"
6 6
7 #include "extensions/common/extension.h" 7 #include "extensions/common/extension.h"
8 8
9 namespace safe_browsing { 9 namespace safe_browsing {
10 10
11 ExtensionInfo::ExtensionInfo(const extensions::Extension* extension) { 11 ExtensionInfo::ExtensionInfo(const extensions::Extension* extension) {
12 DCHECK(extension); 12 DCHECK(extension);
13 id = extension->id(); 13 id = extension->id();
14 name = extension->name(); 14 name = extension->name();
15 } 15 }
16 16
17 ExtensionInfo::ExtensionInfo(const extensions::ExtensionId& id,
18 const std::string& name)
19 : id(id), name(name) {}
20
17 ExtensionInfo::~ExtensionInfo() {} 21 ExtensionInfo::~ExtensionInfo() {}
18 22
19 } // namespace safe_browsing 23 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698