Commit 864c6604 authored by avi's avatar avi Committed by Commit bot

Remove unneeded resource bundle loading.

BUG=410411
TEST=no visible change
TBR=bengr@chromium.org

Review URL: https://codereview.chromium.org/610023003

Cr-Commit-Position: refs/heads/master@{#297249}
parent 449de072
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "base/location.h" #include "base/location.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h" #include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/values.h" #include "base/values.h"
#include "components/dom_distiller/core/article_distillation_update.h" #include "components/dom_distiller/core/article_distillation_update.h"
...@@ -26,7 +25,6 @@ ...@@ -26,7 +25,6 @@
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "third_party/dom_distiller_js/dom_distiller.pb.h" #include "third_party/dom_distiller_js/dom_distiller.pb.h"
#include "third_party/dom_distiller_js/dom_distiller_json_converter.h" #include "third_party/dom_distiller_js/dom_distiller_json_converter.h"
#include "ui/base/resource/resource_bundle.h"
using std::vector; using std::vector;
using std::string; using std::string;
...@@ -187,15 +185,6 @@ void VerifyArticleProtoMatchesMultipageData( ...@@ -187,15 +185,6 @@ void VerifyArticleProtoMatchesMultipageData(
} }
} }
void AddComponentsResources() {
base::FilePath pak_file;
base::FilePath pak_dir;
PathService::Get(base::DIR_MODULE, &pak_dir);
pak_file = pak_dir.Append(FILE_PATH_LITERAL("components_resources.pak"));
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
pak_file, ui::SCALE_FACTOR_NONE);
}
} // namespace } // namespace
namespace dom_distiller { namespace dom_distiller {
...@@ -257,10 +246,6 @@ class DistillerTest : public testing::Test { ...@@ -257,10 +246,6 @@ class DistillerTest : public testing::Test {
public: public:
virtual ~DistillerTest() {} virtual ~DistillerTest() {}
virtual void SetUp() OVERRIDE {
AddComponentsResources();
}
void OnDistillArticleDone(scoped_ptr<DistilledArticleProto> proto) { void OnDistillArticleDone(scoped_ptr<DistilledArticleProto> proto) {
article_proto_ = proto.Pass(); article_proto_ = proto.Pass();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment