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

Side by Side Diff: chrome/browser/extensions/api/extension_action/extension_action_prefs_unittest.cc

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: 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 <string> 5 #include <string>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Make sure the other id's are not hidden. 48 // Make sure the other id's are not hidden.
49 ExtensionList::const_iterator iter = extensions_.begin() + 1; 49 ExtensionList::const_iterator iter = extensions_.begin() + 1;
50 for (; iter != extensions_.end(); ++iter) { 50 for (; iter != extensions_.end(); ++iter) {
51 SCOPED_TRACE(base::StringPrintf("Loop %d ", 51 SCOPED_TRACE(base::StringPrintf("Loop %d ",
52 static_cast<int>(iter - extensions_.begin()))); 52 static_cast<int>(iter - extensions_.begin())));
53 EXPECT_TRUE(action_api->GetBrowserActionVisibility((*iter)->id())); 53 EXPECT_TRUE(action_api->GetBrowserActionVisibility((*iter)->id()));
54 } 54 }
55 } 55 }
56 56
57 private: 57 private:
58 scoped_ptr<TestingProfile> profile_; 58 std::unique_ptr<TestingProfile> profile_;
59 ExtensionList extensions_; 59 ExtensionList extensions_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefsHidingBrowserActions); 61 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefsHidingBrowserActions);
62 }; 62 };
63 63
64 TEST_F(ExtensionPrefsHidingBrowserActions, ForceHide) {} 64 TEST_F(ExtensionPrefsHidingBrowserActions, ForceHide) {}
65 65
66 } // namespace extensions 66 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698