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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) | 427 #if defined(ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) |
428 content::ServiceInfo info; | 428 content::ServiceInfo info; |
429 info.factory = base::Bind(&CreateMediaService, base::Unretained(this)); | 429 info.factory = base::Bind(&CreateMediaService, base::Unretained(this)); |
430 info.task_runner = GetMediaTaskRunner(); | 430 info.task_runner = GetMediaTaskRunner(); |
431 services->insert(std::make_pair("media", info)); | 431 services->insert(std::make_pair("media", info)); |
432 #endif | 432 #endif |
433 } | 433 } |
434 | 434 |
435 std::unique_ptr<base::Value> | 435 std::unique_ptr<base::Value> |
436 CastContentBrowserClient::GetServiceManifestOverlay( | 436 CastContentBrowserClient::GetServiceManifestOverlay( |
437 const std::string& service_name) { | 437 base::StringPiece service_name) { |
438 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 438 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
439 if (service_name != content::mojom::kBrowserServiceName) | 439 if (service_name != content::mojom::kBrowserServiceName) |
440 return nullptr; | 440 return nullptr; |
441 base::StringPiece manifest_contents = | 441 base::StringPiece manifest_contents = |
442 rb.GetRawDataResourceForScale(IDR_CAST_CONTENT_BROWSER_MANIFEST_OVERLAY, | 442 rb.GetRawDataResourceForScale(IDR_CAST_CONTENT_BROWSER_MANIFEST_OVERLAY, |
443 ui::ScaleFactor::SCALE_FACTOR_NONE); | 443 ui::ScaleFactor::SCALE_FACTOR_NONE); |
444 return base::JSONReader::Read(manifest_contents); | 444 return base::JSONReader::Read(manifest_contents); |
445 } | 445 } |
446 | 446 |
447 #if defined(OS_ANDROID) | 447 #if defined(OS_ANDROID) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 process_type, dumps_path, false /* upload */); | 546 process_type, dumps_path, false /* upload */); |
547 // StartUploaderThread() even though upload is diferred. | 547 // StartUploaderThread() even though upload is diferred. |
548 // Breakpad-related memory is freed in the uploader thread. | 548 // Breakpad-related memory is freed in the uploader thread. |
549 crash_handler->StartUploaderThread(); | 549 crash_handler->StartUploaderThread(); |
550 return crash_handler; | 550 return crash_handler; |
551 } | 551 } |
552 #endif // !defined(OS_ANDROID) | 552 #endif // !defined(OS_ANDROID) |
553 | 553 |
554 } // namespace shell | 554 } // namespace shell |
555 } // namespace chromecast | 555 } // namespace chromecast |
OLD | NEW |