| Index: webkit/support/platform_support_linux.cc
|
| diff --git a/webkit/support/platform_support_linux.cc b/webkit/support/platform_support_linux.cc
|
| index bf0b6058bed7d10713ca3ab126900210620bf63c..85cc8418eaa995a9b192c8def90acb59a9898a5a 100644
|
| --- a/webkit/support/platform_support_linux.cc
|
| +++ b/webkit/support/platform_support_linux.cc
|
| @@ -23,14 +23,9 @@ void BeforeInitialize() {
|
| }
|
|
|
| void AfterInitialize() {
|
| - base::FilePath data_path;
|
| - PathService::Get(base::DIR_EXE, &data_path);
|
| - data_path = data_path.Append("DumpRenderTree.pak");
|
| - ResourceBundle::InitSharedInstanceWithPakPath(data_path);
|
| }
|
|
|
| void BeforeShutdown() {
|
| - ResourceBundle::CleanupSharedInstance();
|
| }
|
|
|
| void AfterShutdown() {
|
| @@ -38,39 +33,3 @@ void AfterShutdown() {
|
|
|
| } // namespace webkit_support
|
|
|
| -base::string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) {
|
| - return ResourceBundle::GetSharedInstance().GetLocalizedString(message_id);
|
| -}
|
| -
|
| -base::StringPiece TestWebKitPlatformSupport::GetDataResource(
|
| - int resource_id,
|
| - ui::ScaleFactor scale_factor) {
|
| - base::FilePath resources_path;
|
| - PathService::Get(base::DIR_EXE, &resources_path);
|
| - resources_path = resources_path.Append("DumpRenderTree_resources");
|
| - switch (resource_id) {
|
| - case IDR_BROKENIMAGE: {
|
| - CR_DEFINE_STATIC_LOCAL(std::string, broken_image_data, ());
|
| - if (broken_image_data.empty()) {
|
| - base::FilePath path = resources_path.Append("missingImage.gif");
|
| - bool success = file_util::ReadFileToString(path, &broken_image_data);
|
| - if (!success)
|
| - LOG(FATAL) << "Failed reading: " << path.value();
|
| - }
|
| - return broken_image_data;
|
| - }
|
| - case IDR_TEXTAREA_RESIZER: {
|
| - CR_DEFINE_STATIC_LOCAL(std::string, resize_corner_data, ());
|
| - if (resize_corner_data.empty()) {
|
| - base::FilePath path = resources_path.Append("textAreaResizeCorner.png");
|
| - bool success = file_util::ReadFileToString(path, &resize_corner_data);
|
| - if (!success)
|
| - LOG(FATAL) << "Failed reading: " << path.value();
|
| - }
|
| - return resize_corner_data;
|
| - }
|
| - }
|
| -
|
| - return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
|
| - resource_id, scale_factor);
|
| -}
|
|
|