Commit 4b41ec18 authored by calamity's avatar calamity Committed by Commit bot

Make AppListServiceAsh::OnProfileWillBeRemoved do nothing.

This CL stops AppListServiceAsh handling an event it shouldn't care about,
preventing the AppListServiceViews on Linux handling it correctly.

BUG=469032

Review URL: https://codereview.chromium.org/1020133002

Cr-Commit-Position: refs/heads/master@{#322322}
parent d58d70db
...@@ -61,6 +61,10 @@ void AppListServiceAsh::Init(Profile* initial_profile) { ...@@ -61,6 +61,10 @@ void AppListServiceAsh::Init(Profile* initial_profile) {
service->Init(); service->Init();
} }
void AppListServiceAsh::OnProfileWillBeRemoved(
const base::FilePath& profile_path) {
}
base::FilePath AppListServiceAsh::GetProfilePath( base::FilePath AppListServiceAsh::GetProfilePath(
const base::FilePath& user_data_dir) { const base::FilePath& user_data_dir) {
return ChromeLauncherController::instance()->profile()->GetPath(); return ChromeLauncherController::instance()->profile()->GetPath();
......
...@@ -21,6 +21,12 @@ class AppListServiceAsh : public AppListServiceImpl { ...@@ -21,6 +21,12 @@ class AppListServiceAsh : public AppListServiceImpl {
// AppListService overrides: // AppListService overrides:
void Init(Profile* initial_profile) override; void Init(Profile* initial_profile) override;
// ProfileInfoCacheObserver overrides:
// On ChromeOS this should never happen. On other platforms, there is always a
// Non-ash AppListService that is responsible for handling this.
// TODO(calamity): Ash shouldn't observe the ProfileInfoCache at all.
void OnProfileWillBeRemoved(const base::FilePath& profile_path) override;
private: private:
friend struct DefaultSingletonTraits<AppListServiceAsh>; friend struct DefaultSingletonTraits<AppListServiceAsh>;
......
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