OLD | NEW |
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 Loading... |
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 |
OLD | NEW |