diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 05:42:36 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-22 05:42:36 +0000 |
commit | 0157282494c1096cef55f04d7b8936c7db022679 (patch) | |
tree | 33d30478c95e60b4ba629b098db06ae2d1418278 /webkit/support/platform_support_linux.cc | |
parent | 745816be61e207da7cef1f839591bfb35bd15fd3 (diff) | |
download | chromium_src-0157282494c1096cef55f04d7b8936c7db022679.zip chromium_src-0157282494c1096cef55f04d7b8936c7db022679.tar.gz chromium_src-0157282494c1096cef55f04d7b8936c7db022679.tar.bz2 |
Move some webkit_glue embedder functions into WebKitPlatformSupport virtual methods
This moves the functions into a pattern that is component-friendly.
BUG=98755
TEST=chrome test_shell test_shell_tests browser_tests DumpRenderTree
Review URL: http://codereview.chromium.org/8602002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/platform_support_linux.cc')
-rw-r--r-- | webkit/support/platform_support_linux.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/webkit/support/platform_support_linux.cc b/webkit/support/platform_support_linux.cc index ab0f1c0..1ff0490 100644 --- a/webkit/support/platform_support_linux.cc +++ b/webkit/support/platform_support_linux.cc @@ -12,6 +12,7 @@ #include "base/string_piece.h" #include "grit/webkit_resources.h" #include "ui/base/resource/resource_bundle.h" +#include "webkit/support/test_webkit_platform_support.h" namespace webkit_support { @@ -40,13 +41,11 @@ void AfterShutdown() { } // namespace webkit_support -namespace webkit_glue { - -string16 GetLocalizedString(int message_id) { +string16 TestWebKitPlatformSupport::GetLocalizedString(int message_id) { return ResourceBundle::GetSharedInstance().GetLocalizedString(message_id); } -base::StringPiece GetDataResource(int resource_id) { +base::StringPiece TestWebKitPlatformSupport::GetDataResource(int resource_id) { FilePath resources_path; PathService::Get(base::DIR_EXE, &resources_path); resources_path = resources_path.Append("DumpRenderTree_resources"); @@ -75,5 +74,3 @@ base::StringPiece GetDataResource(int resource_id) { return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); } - -} // namespace webkit_glue |