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

Unified Diff: chrome/installer/util/install_util_unittest.cc

Issue 2622883002: Remove BrowserDistribution::Type. (Closed)
Patch Set: fdoray comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/product.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util_unittest.cc
diff --git a/chrome/installer/util/install_util_unittest.cc b/chrome/installer/util/install_util_unittest.cc
index 4e137d98fe290c013700874f6fa784453bdc3bc1..eb962a462df4aaf61725f07170e89c452ba8effe 100644
--- a/chrome/installer/util/install_util_unittest.cc
+++ b/chrome/installer/util/install_util_unittest.cc
@@ -4,6 +4,7 @@
#include "chrome/installer/util/install_util.h"
+#include <memory>
#include <string>
#include <utility>
@@ -13,6 +14,7 @@
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
#include "base/test/scoped_path_override.h"
@@ -38,9 +40,7 @@ class MockRegistryValuePredicate : public InstallUtil::RegistryValuePredicate {
class TestBrowserDistribution : public BrowserDistribution {
public:
TestBrowserDistribution()
- : BrowserDistribution(CHROME_BROWSER,
- std::unique_ptr<AppRegistrationData>(
- new TestAppRegistrationData())) {}
+ : BrowserDistribution(base::MakeUnique<TestAppRegistrationData>()) {}
};
class InstallUtilTest : public testing::Test {
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/product.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698