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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.h

Issue 8135009: [Multi profile] Clicking "Customize User" should show the "Manage User" dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 9 years, 2 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/options/manage_profile_handler.h
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.h b/chrome/browser/ui/webui/options/manage_profile_handler.h
index 4960fd57ded2f631e3346a0801e8d8b9ac45af94..c3e535c464c6a523b94386ec277aa15bb67685ee 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.h
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.h
@@ -27,8 +27,10 @@ class ManageProfileHandler : public OptionsPageUIHandler {
const NotificationDetails& details);
private:
- // Send the array of default profile icon URLs to WebUI.
- void InitializeDefaultProfileIcons();
+ // Callback for the "requestDefaultProfileIcons" message.
+ // Sends the array of default profile icon URLs to WebUI.
+ // |args| is of the form: [ {string} iconURL ]
+ void RequestDefaultProfileIcons(const base::ListValue* args);
// Sends an object to WebUI of the form:
// profileNames = {
@@ -52,8 +54,18 @@ class ManageProfileHandler : public OptionsPageUIHandler {
// |args| is of the form: [ {string} profileFilePath ]
void DeleteProfile(const base::ListValue* args);
+ // Callback for the "requestProfileInfo" message.
+ // Given |args| of the form: [ {number} profileIndex ]
+ // Sends an object to WebUI of the form:
+ // profileInfo = {
+ // name: "Profile Name",
+ // iconURL: "chrome://path/to/icon/image",
+ // filePath: "/path/to/profile/data/on/disk"
+ // isCurrentProfile: false,
+ // };
+ void RequestProfileInfo(const base::ListValue* args);
+
DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler);
};
#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_
-
« no previous file with comments | « chrome/browser/resources/options/manage_profile_overlay.js ('k') | chrome/browser/ui/webui/options/manage_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698