| OLD | NEW |
| 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 "extensions/browser/info_map.h" | 5 #include "extensions/browser/info_map.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "extensions/browser/content_verifier.h" | 9 #include "extensions/browser/content_verifier.h" |
| 10 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 ExtraDataMap::const_iterator iter = extra_data_.find(extension_id); | 217 ExtraDataMap::const_iterator iter = extra_data_.find(extension_id); |
| 218 if (iter != extra_data_.end()) | 218 if (iter != extra_data_.end()) |
| 219 return iter->second.notifications_disabled; | 219 return iter->second.notifications_disabled; |
| 220 return false; | 220 return false; |
| 221 } | 221 } |
| 222 | 222 |
| 223 void InfoMap::SetContentVerifier(ContentVerifier* verifier) { | 223 void InfoMap::SetContentVerifier(ContentVerifier* verifier) { |
| 224 content_verifier_ = verifier; | 224 content_verifier_ = verifier; |
| 225 } | 225 } |
| 226 | 226 |
| 227 void InfoMap::SetIsLockScreenContext(bool is_lock_screen_context) { |
| 228 process_map_.set_is_lock_screen_context(is_lock_screen_context); |
| 229 } |
| 230 |
| 227 InfoMap::~InfoMap() { | 231 InfoMap::~InfoMap() { |
| 228 if (quota_service_) { | 232 if (quota_service_) { |
| 229 BrowserThread::DeleteSoon( | 233 BrowserThread::DeleteSoon( |
| 230 BrowserThread::IO, FROM_HERE, quota_service_.release()); | 234 BrowserThread::IO, FROM_HERE, quota_service_.release()); |
| 231 } | 235 } |
| 232 } | 236 } |
| 233 | 237 |
| 234 } // namespace extensions | 238 } // namespace extensions |
| OLD | NEW |