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

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

Issue 1568963003: Revert of Settings People Revamp: Implement Chrome Profile name/icon selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
deleted file mode 100644
index 11f250eb67f890ad9344e824c0312a2df8de6b56..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/settings/settings_manage_profile_handler.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_
-
-#include <string>
-
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/profiles/profile_info_cache_observer.h"
-#include "chrome/browser/ui/webui/settings/md_settings_ui.h"
-
-namespace base {
-class StringValue;
-}
-
-class Profile;
-
-namespace settings {
-
-// Chrome personal stuff profiles manage overlay UI handler.
-class ManageProfileHandler : public settings::SettingsPageUIHandler,
- public ProfileInfoCacheObserver {
- public:
- explicit ManageProfileHandler(Profile* profile);
- ~ManageProfileHandler() override;
-
- // settings::SettingsPageUIHandler:
- void RegisterMessages() override;
-
- // ProfileInfoCacheObserver:
- void OnProfileNameChanged(const base::FilePath& profile_path,
- const base::string16& old_profile_name) override;
- void OnProfileAvatarChanged(const base::FilePath& profile_path) override;
-
- private:
- // Callback for the "requestDefaultProfileIcons" message.
- // Sends the array of default profile icon URLs and profile names to WebUI.
- // First item of |args| is the dialog mode, i.e. "create" or "manage".
- void RequestDefaultProfileIcons(const base::ListValue* args);
-
- // Send all the available profile icons to choose from.
- void SendAvailableIcons();
-
- // Callback for the "setProfileIconAndName" message. Sets the name and icon
- // of a given profile.
- // |args| is of the form: [
- // /*string*/ profileFilePath,
- // /*string*/ newProfileIconURL
- // /*string*/ newProfileName,
- // ]
- void SetProfileIconAndName(const base::ListValue* args);
-
- // Callback for the 'profileIconSelectionChanged' message. Used to update the
- // name in the manager profile dialog based on the selected icon.
- void ProfileIconSelectionChanged(const base::ListValue* args);
-
- // Callback for the "requestHasProfileShortcuts" message, which is called
- // when editing an existing profile. Asks the profile shortcut manager whether
- // the profile has shortcuts and gets the result in |OnHasProfileShortcuts()|.
- // |args| is of the form: [ {string} profileFilePath ]
- void RequestHasProfileShortcuts(const base::ListValue* args);
-
- // Callback invoked from the profile manager indicating whether the profile
- // being edited has any desktop shortcuts.
- void OnHasProfileShortcuts(bool has_shortcuts);
-
- // Callback for the "addProfileShortcut" message, which is called when editing
- // an existing profile and the user clicks the "Add desktop shortcut" button.
- // Adds a desktop shortcut for the profile.
- void AddProfileShortcut(const base::ListValue* args);
-
- // Callback for the "removeProfileShortcut" message, which is called when
- // editing an existing profile and the user clicks the "Remove desktop
- // shortcut" button. Removes the desktop shortcut for the profile.
- void RemoveProfileShortcut(const base::ListValue* args);
-
- // Callback for the "refreshGaiaPicture" message, which is called when the
- // user is editing an existing profile.
- void RefreshGaiaPicture(const base::ListValue* args);
-
- // Non-owning pointer to the associated profile.
- Profile* profile_;
-
- // URL for the current profile's GAIA picture.
- std::string gaia_picture_url_;
-
- // For generating weak pointers to itself for callbacks.
- base::WeakPtrFactory<ManageProfileHandler> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler);
-};
-
-} // namespace settings
-
-#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698