Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / athena / main / athena_shell.cc
index cd017ed..b4dd4a4 100644 (file)
@@ -6,6 +6,7 @@
 #include "athena/activity/public/activity_manager.h"
 #include "athena/test/athena_test_helper.h"
 #include "base/at_exit.h"
+#include "base/base_paths.h"
 #include "base/command_line.h"
 #include "base/i18n/icu_util.h"
 #include "base/message_loop/message_loop.h"
@@ -13,7 +14,6 @@
 #include "base/run_loop.h"
 #include "ui/aura/window_tree_host.h"
 #include "ui/base/resource/resource_bundle.h"
-#include "ui/base/ui_base_paths.h"
 #include "ui/compositor/test/context_factories_for_test.h"
 #include "ui/gl/gl_surface.h"
 
@@ -46,14 +46,14 @@ int main(int argc, const char **argv) {
   setlocale(LC_ALL, "");
 
   base::AtExitManager exit_manager;
-  ui::RegisterPathProvider();
   base::CommandLine::Init(argc, argv);
   base::i18n::InitializeICU();
   gfx::GLSurface::InitializeOneOffForTests();
 
-  base::FilePath ui_test_pak_path;
-  DCHECK(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
-  ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
+  base::FilePath test_pak_path;
+  CHECK(PathService::Get(base::DIR_MODULE, &test_pak_path));
+  test_pak_path = test_pak_path.AppendASCII("athena_resources.pak");
+  ui::ResourceBundle::InitSharedInstanceWithPakPath(test_pak_path);
 
   base::MessageLoopForUI message_loop;
   UIShell shell(&message_loop);