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

Unified Diff: chrome/browser/password_manager/password_store_win_unittest.cc

Issue 951883002: [Password Manager Cleanup] Replaces NULL -> nullptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Vaclav's comments. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/password_store_win_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_win_unittest.cc b/chrome/browser/password_manager/password_store_win_unittest.cc
index df5869b0c8402540326ce2a76167835181372727..e21eac9a41893e1954b1421561f6e9504167f269 100644
--- a/chrome/browser/password_manager/password_store_win_unittest.cc
+++ b/chrome/browser/password_manager/password_store_win_unittest.cc
@@ -97,7 +97,7 @@ class PasswordStoreWinTest : public testing::Test {
url_key.cbData = static_cast<DWORD>((url.size() + 1) *
sizeof(std::wstring::value_type));
- if (!CryptProtectData(&input, NULL, &url_key, NULL, NULL,
+ if (!CryptProtectData(&input, nullptr, &url_key, nullptr, nullptr,
CRYPTPROTECT_UI_FORBIDDEN, &output))
return false;
@@ -139,8 +139,8 @@ class PasswordStoreWinTest : public testing::Test {
store_->Shutdown();
wds_->ShutdownOnUIThread();
wdbs_->ShutdownDatabase();
- wds_ = NULL;
- wdbs_ = NULL;
+ wds_ = nullptr;
+ wdbs_ = nullptr;
base::WaitableEvent done(false, false);
BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
base::Bind(&base::WaitableEvent::Signal, base::Unretained(&done)));
@@ -284,8 +284,8 @@ TEST_F(PasswordStoreWinTest, DISABLED_OutstandingWDSQueries) {
// Release the PSW and the WDS before the query can return.
store_->Shutdown();
- store_ = NULL;
- wds_ = NULL;
+ store_ = nullptr;
+ wds_ = nullptr;
base::MessageLoop::current()->RunUntilIdle();
}
« no previous file with comments | « chrome/browser/password_manager/password_store_factory.cc ('k') | chrome/browser/password_manager/password_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698