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

Side by Side Diff: components/autofill/core/browser/autofill_test_utils.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_test_utils.h" 5 #include "components/autofill/core/browser/autofill_test_utils.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/guid.h" 9 #include "base/guid.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 19 matching lines...) Expand all
30 30
31 namespace autofill { 31 namespace autofill {
32 namespace test { 32 namespace test {
33 33
34 namespace { 34 namespace {
35 35
36 const char kSettingsOrigin[] = "Chrome settings"; 36 const char kSettingsOrigin[] = "Chrome settings";
37 37
38 } // namespace 38 } // namespace
39 39
40 scoped_ptr<PrefService> PrefServiceForTesting() { 40 std::unique_ptr<PrefService> PrefServiceForTesting() {
41 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( 41 scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
42 new user_prefs::PrefRegistrySyncable()); 42 new user_prefs::PrefRegistrySyncable());
43 AutofillManager::RegisterProfilePrefs(registry.get()); 43 AutofillManager::RegisterProfilePrefs(registry.get());
44 44
45 // PDM depends on these prefs, which are normally registered in 45 // PDM depends on these prefs, which are normally registered in
46 // SigninManagerFactory. 46 // SigninManagerFactory.
47 registry->RegisterStringPref(::prefs::kGoogleServicesAccountId, 47 registry->RegisterStringPref(::prefs::kGoogleServicesAccountId,
48 std::string()); 48 std::string());
49 registry->RegisterStringPref(::prefs::kGoogleServicesLastAccountId, 49 registry->RegisterStringPref(::prefs::kGoogleServicesLastAccountId,
50 std::string()); 50 std::string());
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 if (name) 340 if (name)
341 field->set_name(name); 341 field->set_name(name);
342 if (control_type) 342 if (control_type)
343 field->set_type(control_type); 343 field->set_type(control_type);
344 if (label) 344 if (label)
345 field->set_label(label); 345 field->set_label(label);
346 } 346 }
347 347
348 } // namespace test 348 } // namespace test
349 } // namespace autofill 349 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698