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

Unified Diff: chrome/browser/ui/webui/settings/settings_manage_profile_handler_unittest.cc

Issue 1988463002: MD Settings: Convert C++ handlers to be JavaScript-lifecycle aware. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/settings_manage_profile_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/settings/settings_manage_profile_handler_unittest.cc b/chrome/browser/ui/webui/settings/settings_manage_profile_handler_unittest.cc
index 49d57ab839f22e87e6fe0c016e07cc7f399d84ab..63bf918ac5755e579272525106581036405fd177 100644
--- a/chrome/browser/ui/webui/settings/settings_manage_profile_handler_unittest.cc
+++ b/chrome/browser/ui/webui/settings/settings_manage_profile_handler_unittest.cc
@@ -24,6 +24,7 @@ class TestManageProfileHandler : public ManageProfileHandler {
: ManageProfileHandler(profile) {}
using ManageProfileHandler::set_web_ui;
+ using ManageProfileHandler::AllowJavascript;
};
} // namespace
@@ -40,6 +41,8 @@ class ManageProfileHandlerTest : public testing::Test {
handler_.reset(new TestManageProfileHandler(profile_));
handler_->set_web_ui(&web_ui_);
+ handler()->AllowJavascript();
+ web_ui()->ClearTrackedCalls();
}
void VerifyIconList(const base::Value* value) {

Powered by Google App Engine
This is Rietveld 408576698