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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_app_tab_helper.h

Issue 1921403002: Pin apps from prefs on the mash shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only include arc for cros. Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 11 #include "chrome/browser/ui/ash/launcher/app_tab_helper.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 // Default implementation of LauncherUpdater::AppTabHelper that interacts 15 // Default implementation of LauncherUpdater::AppTabHelper that interacts
16 // with ExtensionService. 16 // with ExtensionService.
17 class LauncherAppTabHelper : public ChromeLauncherController::AppTabHelper { 17 class LauncherAppTabHelper : public AppTabHelper {
18 public: 18 public:
19 explicit LauncherAppTabHelper(Profile* profile); 19 explicit LauncherAppTabHelper(Profile* profile);
20 ~LauncherAppTabHelper() override; 20 ~LauncherAppTabHelper() override;
21 21
22 // AppTabHelper: 22 // AppTabHelper:
23 std::string GetAppID(content::WebContents* tab) override; 23 std::string GetAppID(content::WebContents* tab) override;
24 bool IsValidIDForCurrentUser(const std::string& id) override; 24 bool IsValidIDForCurrentUser(const std::string& id) override;
25 void SetCurrentUser(Profile* profile) override; 25 void SetCurrentUser(Profile* profile) override;
26 26
27 private: 27 private:
28 Profile* profile_; 28 Profile* profile_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(LauncherAppTabHelper); 30 DISALLOW_COPY_AND_ASSIGN(LauncherAppTabHelper);
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_ 33 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_APP_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698