| 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/common/chrome_content_client.h" | 5 #include "chrome/common/chrome_content_client.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/crash_logging.h" | 10 #include "base/debug/crash_logging.h" |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 } | 560 } |
| 561 | 561 |
| 562 std::string ChromeContentClient::GetUserAgent() const { | 562 std::string ChromeContentClient::GetUserAgent() const { |
| 563 return ::GetUserAgent(); | 563 return ::GetUserAgent(); |
| 564 } | 564 } |
| 565 | 565 |
| 566 base::string16 ChromeContentClient::GetLocalizedString(int message_id) const { | 566 base::string16 ChromeContentClient::GetLocalizedString(int message_id) const { |
| 567 return l10n_util::GetStringUTF16(message_id); | 567 return l10n_util::GetStringUTF16(message_id); |
| 568 } | 568 } |
| 569 | 569 |
| 570 base::string16 ChromeContentClient::GetLocalizedStringF( |
| 571 int message_id, |
| 572 const base::string16& string0) const { |
| 573 return l10n_util::GetStringFUTF16(message_id, string0); |
| 574 } |
| 575 |
| 570 base::StringPiece ChromeContentClient::GetDataResource( | 576 base::StringPiece ChromeContentClient::GetDataResource( |
| 571 int resource_id, | 577 int resource_id, |
| 572 ui::ScaleFactor scale_factor) const { | 578 ui::ScaleFactor scale_factor) const { |
| 573 return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( | 579 return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( |
| 574 resource_id, scale_factor); | 580 resource_id, scale_factor); |
| 575 } | 581 } |
| 576 | 582 |
| 577 base::RefCountedStaticMemory* ChromeContentClient::GetDataResourceBytes( | 583 base::RefCountedStaticMemory* ChromeContentClient::GetDataResourceBytes( |
| 578 int resource_id) const { | 584 int resource_id) const { |
| 579 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id); | 585 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 #endif | 636 #endif |
| 631 } | 637 } |
| 632 | 638 |
| 633 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() { | 639 bool ChromeContentClient::IsSupplementarySiteIsolationModeEnabled() { |
| 634 #if defined(ENABLE_EXTENSIONS) | 640 #if defined(ENABLE_EXTENSIONS) |
| 635 return extensions::IsIsolateExtensionsEnabled(); | 641 return extensions::IsIsolateExtensionsEnabled(); |
| 636 #else | 642 #else |
| 637 return false; | 643 return false; |
| 638 #endif | 644 #endif |
| 639 } | 645 } |
| OLD | NEW |