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

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..d5df77a886c069e874ae0024a5a5329b184cb130 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
@@ -40,6 +40,13 @@ class ManageProfileHandlerTest : public testing::Test {
handler_.reset(new TestManageProfileHandler(profile_));
handler_->set_web_ui(&web_ui_);
+
+ // Do initial fetch of available icons to AllowJavascript.
+ base::ListValue list_args;
+ list_args.Append(new base::StringValue("get-icons-callback-id"));
+ handler()->HandleGetAvailableIcons(&list_args);
+
+ web_ui()->ClearTrackedCalls();
}
void VerifyIconList(const base::Value* value) {

Powered by Google App Engine
This is Rietveld 408576698