Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 461 new ChromeBlobProtocolHandler( | 461 new ChromeBlobProtocolHandler( |
| 462 profile_params_->blob_storage_context->controller(), | 462 profile_params_->blob_storage_context->controller(), |
| 463 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); | 463 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); |
| 464 DCHECK(set_protocol); | 464 DCHECK(set_protocol); |
| 465 set_protocol = job_factory_->SetProtocolHandler( | 465 set_protocol = job_factory_->SetProtocolHandler( |
| 466 chrome::kFileSystemScheme, | 466 chrome::kFileSystemScheme, |
| 467 CreateFileSystemProtocolHandler( | 467 CreateFileSystemProtocolHandler( |
| 468 profile_params_->file_system_context, | 468 profile_params_->file_system_context, |
| 469 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); | 469 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); |
| 470 DCHECK(set_protocol); | 470 DCHECK(set_protocol); |
| 471 #if defined(OS_CHROMEOS) | 471 #if defined(OS_CHROMEOS) && !defined(GOOGLE_CHROME_BUILD) |
| 472 // Install the GView request interceptor that will redirect requests | 472 // Install the GView request interceptor that will redirect requests |
| 473 // of compatible documents (PDF, etc) to the GView document viewer. | 473 // of compatible documents (PDF, etc) to the GView document viewer. |
| 474 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); | 474 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); |
| 475 if (parsed_command_line.HasSwitch(switches::kEnableGView)) | 475 if (parsed_command_line.HasSwitch(switches::kEnableGView)) |
| 476 job_factory_->AddInterceptor(new chromeos::GViewRequestInterceptor); | 476 job_factory_->AddInterceptor(new chromeos::GViewRequestInterceptor); |
| 477 #endif // defined(OS_CHROMEOS) | 477 #endif // defined(OS_CHROMEOS) && !defiend(GOOGLE_CHROME_BUILD) |
|
DaveMoore
2011/10/28 18:47:09
Nit: spelling
| |
| 478 | 478 |
| 479 media_stream_manager_.reset(new media_stream::MediaStreamManager); | 479 media_stream_manager_.reset(new media_stream::MediaStreamManager); |
| 480 | 480 |
| 481 // Take ownership over these parameters. | 481 // Take ownership over these parameters. |
| 482 database_tracker_ = profile_params_->database_tracker; | 482 database_tracker_ = profile_params_->database_tracker; |
| 483 appcache_service_ = profile_params_->appcache_service; | 483 appcache_service_ = profile_params_->appcache_service; |
| 484 blob_storage_context_ = profile_params_->blob_storage_context; | 484 blob_storage_context_ = profile_params_->blob_storage_context; |
| 485 file_system_context_ = profile_params_->file_system_context; | 485 file_system_context_ = profile_params_->file_system_context; |
| 486 quota_manager_ = profile_params_->quota_manager; | 486 quota_manager_ = profile_params_->quota_manager; |
| 487 host_zoom_map_ = profile_params_->host_zoom_map; | 487 host_zoom_map_ = profile_params_->host_zoom_map; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 536 bool posted = BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 536 bool posted = BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
| 537 new DeleteTask<ProfileIOData>(this)); | 537 new DeleteTask<ProfileIOData>(this)); |
| 538 if (!posted) | 538 if (!posted) |
| 539 delete this; | 539 delete this; |
| 540 } | 540 } |
| 541 | 541 |
| 542 void ProfileIOData::set_origin_bound_cert_service( | 542 void ProfileIOData::set_origin_bound_cert_service( |
| 543 net::OriginBoundCertService* origin_bound_cert_service) const { | 543 net::OriginBoundCertService* origin_bound_cert_service) const { |
| 544 origin_bound_cert_service_.reset(origin_bound_cert_service); | 544 origin_bound_cert_service_.reset(origin_bound_cert_service); |
| 545 } | 545 } |
| OLD | NEW |