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

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

Issue 2892403002: Introduce lock screen app context to extension features (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/browser/process_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/browser/info_map.h ('k') | extensions/browser/process_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698