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

Unified Diff: chrome/browser/ui/app_list/model_pref_updater.h

Issue 2430753002: Discard unused AppListPrefs code. (Closed)
Patch Set: update Created 4 years, 2 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/ui/app_list/model_pref_updater.h
diff --git a/chrome/browser/ui/app_list/model_pref_updater.h b/chrome/browser/ui/app_list/model_pref_updater.h
deleted file mode 100644
index 702012b5d02763f2967e24487d2006e4aad9564d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_list/model_pref_updater.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 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_UI_APP_LIST_MODEL_PREF_UPDATER_H_
-#define CHROME_BROWSER_UI_APP_LIST_MODEL_PREF_UPDATER_H_
-
-#include "base/macros.h"
-#include "ui/app_list/app_list_model_observer.h"
-
-namespace app_list {
-
-class AppListModel;
-class AppListPrefs;
-
-// A class which listens to an AppListModel and updates the local pref model of
-// the app list accordingly.
-class ModelPrefUpdater : public AppListModelObserver {
- public:
- ModelPrefUpdater(AppListPrefs* app_list_prefs, AppListModel* model);
- ~ModelPrefUpdater() override;
-
- // Overridden from AppListModelObserver:
- void OnAppListItemAdded(AppListItem* item) override;
- void OnAppListItemWillBeDeleted(AppListItem* item) override;
- void OnAppListItemUpdated(AppListItem* item) override;
-
- private:
- void UpdatePrefsFromAppListItem(AppListItem* item);
-
- AppListPrefs* app_list_prefs_;
- AppListModel* model_;
-
- DISALLOW_COPY_AND_ASSIGN(ModelPrefUpdater);
-};
-
-} // namespace app_list
-
-#endif // CHROME_BROWSER_UI_APP_LIST_MODEL_PREF_UPDATER_H_
« no previous file with comments | « chrome/browser/ui/app_list/app_list_syncable_service.cc ('k') | chrome/browser/ui/app_list/model_pref_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698