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

Unified Diff: chrome/browser/profiles/profile_shortcut_manager.h

Issue 10823217: Create/Delete windows profile shortcuts (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/profiles/profile_shortcut_manager.h
===================================================================
--- chrome/browser/profiles/profile_shortcut_manager.h (revision 0)
+++ chrome/browser/profiles/profile_shortcut_manager.h (revision 0)
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 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_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
+#define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
+
+#include "base/file_path.h"
+#include "ui/gfx/image/image.h"
+
+class ProfileShortcutManager {
+ public:
+ static bool IsFeatureEnabled();
+ static ProfileShortcutManager* Create();
+
+ ProfileShortcutManager();
Ben Goodger (Google) 2012/08/14 22:43:19 This class looks a lot like an interface. As such
Halli 2012/08/15 18:13:53 I get the following error when I remove the constr
+ ~ProfileShortcutManager();
Ben Goodger (Google) 2012/08/14 22:43:19 Constructors and destructors should be listed befo
Halli 2012/08/15 18:13:53 Done.
+
+ virtual void CreateChromeDesktopShortcut(
+ const FilePath& profile_path, const string16& profile_name,
+ const gfx::Image& avatar_image) = 0;
+ virtual void DeleteChromeDesktopShortcut(const FilePath& profile_path) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManager);
+};
+
+#endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/profiles/profile_shortcut_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698