OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 context = app_request_context_map_[app_id]; | 353 context = app_request_context_map_[app_id]; |
354 } else { | 354 } else { |
355 context = AcquireIsolatedAppRequestContext(main_context, app_id); | 355 context = AcquireIsolatedAppRequestContext(main_context, app_id); |
356 app_request_context_map_[app_id] = context; | 356 app_request_context_map_[app_id] = context; |
357 } | 357 } |
358 DCHECK(context); | 358 DCHECK(context); |
359 return context; | 359 return context; |
360 } | 360 } |
361 | 361 |
362 ExtensionInfoMap* ProfileIOData::GetExtensionInfoMap() const { | 362 ExtensionInfoMap* ProfileIOData::GetExtensionInfoMap() const { |
363 DCHECK(extension_info_map_) << "ExtensionSystem not initialized"; | |
364 return extension_info_map_; | 363 return extension_info_map_; |
365 } | 364 } |
366 | 365 |
367 CookieSettings* ProfileIOData::GetCookieSettings() const { | 366 CookieSettings* ProfileIOData::GetCookieSettings() const { |
368 return cookie_settings_; | 367 return cookie_settings_; |
369 } | 368 } |
370 | 369 |
371 #if defined(ENABLE_NOTIFICATIONS) | 370 #if defined(ENABLE_NOTIFICATIONS) |
372 DesktopNotificationService* ProfileIOData::GetNotificationService() const { | 371 DesktopNotificationService* ProfileIOData::GetNotificationService() const { |
373 return notification_service_; | 372 return notification_service_; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 } | 599 } |
601 | 600 |
602 void ProfileIOData::set_server_bound_cert_service( | 601 void ProfileIOData::set_server_bound_cert_service( |
603 net::ServerBoundCertService* server_bound_cert_service) const { | 602 net::ServerBoundCertService* server_bound_cert_service) const { |
604 server_bound_cert_service_.reset(server_bound_cert_service); | 603 server_bound_cert_service_.reset(server_bound_cert_service); |
605 } | 604 } |
606 | 605 |
607 void ProfileIOData::DestroyResourceContext() { | 606 void ProfileIOData::DestroyResourceContext() { |
608 resource_context_.reset(); | 607 resource_context_.reset(); |
609 } | 608 } |
OLD | NEW |