| 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 "chromecast/browser/cast_content_browser_client.h" | 5 #include "chromecast/browser/cast_content_browser_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 438 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
| 439 content::ServiceInfo info; | 439 content::ServiceInfo info; |
| 440 info.factory = base::Bind(&CreateMediaService, base::Unretained(this)); | 440 info.factory = base::Bind(&CreateMediaService, base::Unretained(this)); |
| 441 info.task_runner = GetMediaTaskRunner(); | 441 info.task_runner = GetMediaTaskRunner(); |
| 442 services->insert(std::make_pair("media", info)); | 442 services->insert(std::make_pair("media", info)); |
| 443 #endif | 443 #endif |
| 444 } | 444 } |
| 445 | 445 |
| 446 std::unique_ptr<base::Value> | 446 std::unique_ptr<base::Value> |
| 447 CastContentBrowserClient::GetServiceManifestOverlay( | 447 CastContentBrowserClient::GetServiceManifestOverlay( |
| 448 const std::string& service_name) { | 448 base::StringPiece service_name) { |
| 449 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 449 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
| 450 if (service_name != content::mojom::kBrowserServiceName) | 450 if (service_name != content::mojom::kBrowserServiceName) |
| 451 return nullptr; | 451 return nullptr; |
| 452 base::StringPiece manifest_contents = | 452 base::StringPiece manifest_contents = |
| 453 rb.GetRawDataResourceForScale(IDR_CAST_CONTENT_BROWSER_MANIFEST_OVERLAY, | 453 rb.GetRawDataResourceForScale(IDR_CAST_CONTENT_BROWSER_MANIFEST_OVERLAY, |
| 454 ui::ScaleFactor::SCALE_FACTOR_NONE); | 454 ui::ScaleFactor::SCALE_FACTOR_NONE); |
| 455 return base::JSONReader::Read(manifest_contents); | 455 return base::JSONReader::Read(manifest_contents); |
| 456 } | 456 } |
| 457 | 457 |
| 458 #if defined(OS_ANDROID) | 458 #if defined(OS_ANDROID) |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 process_type, dumps_path, false /* upload */); | 557 process_type, dumps_path, false /* upload */); |
| 558 // StartUploaderThread() even though upload is diferred. | 558 // StartUploaderThread() even though upload is diferred. |
| 559 // Breakpad-related memory is freed in the uploader thread. | 559 // Breakpad-related memory is freed in the uploader thread. |
| 560 crash_handler->StartUploaderThread(); | 560 crash_handler->StartUploaderThread(); |
| 561 return crash_handler; | 561 return crash_handler; |
| 562 } | 562 } |
| 563 #endif // !defined(OS_ANDROID) | 563 #endif // !defined(OS_ANDROID) |
| 564 | 564 |
| 565 } // namespace shell | 565 } // namespace shell |
| 566 } // namespace chromecast | 566 } // namespace chromecast |
| OLD | NEW |