Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: ios/web/test/web_test_suite.mm

Issue 2037763002: [ios] Cleanup resource bundle in WebTestSuite::Shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/test/web_test_suite.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ios/web/test/web_test_suite.h" 5 #include "ios/web/test/web_test_suite.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/metrics/statistics_recorder.h" 9 #include "base/metrics/statistics_recorder.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ui::ResourceBundle::InitSharedInstanceWithLocale( 51 ui::ResourceBundle::InitSharedInstanceWithLocale(
52 "en-US", nullptr, ui::ResourceBundle::LOAD_COMMON_RESOURCES); 52 "en-US", nullptr, ui::ResourceBundle::LOAD_COMMON_RESOURCES);
53 base::FilePath resources_pack_path; 53 base::FilePath resources_pack_path;
54 base::PathService::Get(base::DIR_MODULE, &resources_pack_path); 54 base::PathService::Get(base::DIR_MODULE, &resources_pack_path);
55 resources_pack_path = 55 resources_pack_path =
56 resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); 56 resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak"));
57 ResourceBundle::GetSharedInstance().AddDataPackFromPath( 57 ResourceBundle::GetSharedInstance().AddDataPackFromPath(
58 resources_pack_path, ui::SCALE_FACTOR_NONE); 58 resources_pack_path, ui::SCALE_FACTOR_NONE);
59 } 59 }
60 60
61 void WebTestSuite::Shutdown() {
62 ResourceBundle::CleanupSharedInstance();
63 base::TestSuite::Shutdown();
64 }
65
61 } // namespace web 66 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/test/web_test_suite.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698