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

Side by Side Diff: extensions/browser/content_verifier_io_data.cc

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/content_verifier_io_data.h" 5 #include "extensions/browser/content_verifier_io_data.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 const ContentVerifierIOData::ExtensionData* ContentVerifierIOData::GetData( 46 const ContentVerifierIOData::ExtensionData* ContentVerifierIOData::GetData(
47 const std::string& extension_id) { 47 const std::string& extension_id) {
48 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 48 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
49 std::map<std::string, linked_ptr<ExtensionData> >::iterator found = 49 std::map<std::string, linked_ptr<ExtensionData> >::iterator found =
50 data_map_.find(extension_id); 50 data_map_.find(extension_id);
51 if (found != data_map_.end()) 51 if (found != data_map_.end())
52 return found->second.get(); 52 return found->second.get();
53 else 53 else
54 return NULL; 54 return nullptr;
55 } 55 }
56 56
57 } // namespace extensions 57 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698