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

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

Issue 874563003: Remove old HTML app list start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « chrome/browser/resources/app_list/start_page.js ('k') | chrome/browser/ui/app_list/recommended_apps.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/recommended_apps.h
diff --git a/chrome/browser/ui/app_list/recommended_apps.h b/chrome/browser/ui/app_list/recommended_apps.h
deleted file mode 100644
index a75275791646abca34bb6178d657f5fca2edfca7..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_list/recommended_apps.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2013 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_RECOMMENDED_APPS_H_
-#define CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/observer_list.h"
-#include "base/prefs/pref_change_registrar.h"
-#include "base/scoped_observer.h"
-#include "extensions/browser/extension_registry_observer.h"
-
-class Profile;
-
-namespace extensions {
-class ExtensionRegistry;
-}
-
-namespace app_list {
-
-class RecommendedAppsObserver;
-
-// A class that maintains a list of recommended apps by watching changes
-// to app state.
-class RecommendedApps : public extensions::ExtensionRegistryObserver {
- public:
- typedef std::vector<scoped_refptr<const extensions::Extension> > Apps;
-
- explicit RecommendedApps(Profile* profile);
- ~RecommendedApps() override;
-
- void AddObserver(RecommendedAppsObserver* observer);
- void RemoveObserver(RecommendedAppsObserver* observer);
-
- const Apps& apps() const { return apps_; }
-
- private:
- void Update();
-
- // extensions::ExtensionRegistryObserver overrides:
- void OnExtensionWillBeInstalled(content::BrowserContext* browser_context,
- const extensions::Extension* extension,
- bool is_update,
- bool from_ephemeral,
- const std::string& old_name) override;
- void OnExtensionLoaded(content::BrowserContext* browser_context,
- const extensions::Extension* extension) override;
- void OnExtensionUnloaded(
- content::BrowserContext* browser_context,
- const extensions::Extension* extension,
- extensions::UnloadedExtensionInfo::Reason reason) override;
- void OnExtensionUninstalled(content::BrowserContext* browser_context,
- const extensions::Extension* extension,
- extensions::UninstallReason reason) override;
-
- Profile* profile_;
- PrefChangeRegistrar pref_change_registrar_;
-
- Apps apps_;
- ObserverList<RecommendedAppsObserver, true> observers_;
-
- ScopedObserver<extensions::ExtensionRegistry,
- extensions::ExtensionRegistryObserver>
- extension_registry_observer_;
-
- DISALLOW_COPY_AND_ASSIGN(RecommendedApps);
-};
-
-} // namespace app_list
-
-#endif // CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_
« no previous file with comments | « chrome/browser/resources/app_list/start_page.js ('k') | chrome/browser/ui/app_list/recommended_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698