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

Unified Diff: chrome/browser/ui/webui/settings/settings_manage_profile_handler.h

Issue 1871653002: Settings People Revamp: Update ManageProfileHandler to use Promises. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.h
diff --git a/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h b/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h
index 548e8c23544a3f6dc35b899030ae6defbbdd2937..af260070290799a491e9f2d90fa657c74aefa2d4 100644
--- a/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h
+++ b/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h
@@ -34,15 +34,16 @@ class ManageProfileHandler : public settings::SettingsPageUIHandler,
void OnProfileAvatarChanged(const base::FilePath& profile_path) override;
private:
- FRIEND_TEST_ALL_PREFIXES(ManageProfileHandlerTest, SetProfileIconAndName);
- FRIEND_TEST_ALL_PREFIXES(ManageProfileHandlerTest, GetAvailableIcons);
+ FRIEND_TEST_ALL_PREFIXES(ManageProfileHandlerTest,
+ HandleSetProfileIconAndName);
+ FRIEND_TEST_ALL_PREFIXES(ManageProfileHandlerTest, HandleGetAvailableIcons);
// Callback for the "getAvailableIcons" message.
// Sends the array of default profile icon URLs and profile names to WebUI.
void HandleGetAvailableIcons(const base::ListValue* args);
- // Send all the available profile icons to choose from.
- void SendAvailableIcons();
+ // Get all the available profile icons to choose from.
+ scoped_ptr<base::ListValue> GetAvailableIcons();
// Callback for the "setProfileIconAndName" message. Sets the name and icon
// of a given profile.

Powered by Google App Engine
This is Rietveld 408576698