win: Set app user model ID in one place

Fix #3297.
Fix #2573.
This commit is contained in:
Cheng Zhao 2015-11-03 15:09:31 +08:00
parent 7c7a7b96de
commit 9047f81835
6 changed files with 16 additions and 21 deletions

View file

@ -66,6 +66,9 @@ class Browser : public WindowListObserver {
// Clear the recent documents list.
void ClearRecentDocuments();
// Set the application user model ID.
void SetAppUserModelID(const base::string16& name);
#if defined(OS_MACOSX)
// Bounce the dock icon.
enum BounceType {
@ -100,9 +103,6 @@ class Browser : public WindowListObserver {
// Add a custom task to jump list.
void SetUserTasks(const std::vector<UserTask>& tasks);
// Set the application user model ID.
void SetAppUserModelID(const base::string16& name);
// Returns the application user model ID, if there isn't one, then create
// one from app's name.
// The returned string managed by Browser, and should not be modified.