Commit f65c3a06 authored by Danan S's avatar Danan S Committed by Commit Bot

Remove unused arc::IsArcAppSticky method

Bug: 1110502
Change-Id: Ic9d0993afdbf55b64d8475ecf104aebb5a78012d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335397
Auto-Submit: Dan S <danan@chromium.org>
Reviewed-by: default avatarLong Cheng <lgcheng@google.com>
Commit-Queue: Long Cheng <lgcheng@google.com>
Cr-Commit-Position: refs/heads/master@{#794209}
parent 6ae1f421
...@@ -709,16 +709,6 @@ std::string ArcPackageNameToAppId(const std::string& package_name, ...@@ -709,16 +709,6 @@ std::string ArcPackageNameToAppId(const std::string& package_name,
return arc_prefs->GetAppIdByPackageName(package_name); return arc_prefs->GetAppIdByPackageName(package_name);
} }
bool IsArcAppSticky(const std::string& app_id, Profile* profile) {
ArcAppListPrefs* arc_prefs = ArcAppListPrefs::Get(profile);
std::unique_ptr<ArcAppListPrefs::AppInfo> app_info =
arc_prefs->GetApp(app_id);
DCHECK(app_info) << "Couldn't retrieve ARC package name for AppID: "
<< app_id;
return app_info->sticky;
}
void AddAppLaunchObserver(content::BrowserContext* context, void AddAppLaunchObserver(content::BrowserContext* context,
AppLaunchObserver* observer) { AppLaunchObserver* observer) {
class ProfileDestroyedObserver : public ProfileObserver { class ProfileDestroyedObserver : public ProfileObserver {
......
...@@ -210,11 +210,6 @@ std::string AppIdToArcPackageName(const std::string& app_id, Profile* profile); ...@@ -210,11 +210,6 @@ std::string AppIdToArcPackageName(const std::string& app_id, Profile* profile);
std::string ArcPackageNameToAppId(const std::string& package_name, std::string ArcPackageNameToAppId(const std::string& package_name,
Profile* profile); Profile* profile);
// Returns true if the ARC app is sticky (not uninstallable). This function
// will DCHECK if app_id isn't installed. This functionality should eventually
// move to the App Service: (https://crbug.com/948408).
bool IsArcAppSticky(const std::string& app_id, Profile* profile);
// Add/remove an observer to be notified of app launches. // Add/remove an observer to be notified of app launches.
void AddAppLaunchObserver(content::BrowserContext* context, void AddAppLaunchObserver(content::BrowserContext* context,
AppLaunchObserver* observer); AppLaunchObserver* observer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment