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

Unified Diff: chrome/browser/ui/app_list/search/people/people_result.h

Issue 1925733005: Remove people search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deprecate people search actions and enum Created 4 years, 8 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/search/people/people_result.h
diff --git a/chrome/browser/ui/app_list/search/people/people_result.h b/chrome/browser/ui/app_list/search/people/people_result.h
deleted file mode 100644
index fb49ed509f90a3218053009dc8873466c41fb73e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/app_list/search/people/people_result.h
+++ /dev/null
@@ -1,63 +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_SEARCH_PEOPLE_PEOPLE_RESULT_H_
-#define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "ui/app_list/search_result.h"
-#include "url/gurl.h"
-
-class AppListControllerDelegate;
-class Profile;
-
-namespace app_list {
-
-struct Person;
-
-class PeopleResult : public SearchResult {
- public:
- PeopleResult(Profile* profile,
- AppListControllerDelegate* controller,
- std::unique_ptr<Person> person);
- ~PeopleResult() override;
-
- // SearchResult overrides:
- void Open(int event_flags) override;
- void InvokeAction(int action_index, int event_flags) override;
- std::unique_ptr<SearchResult> Duplicate() const override;
-
- private:
- void OnIconLoaded();
- void SetDefaultActions();
- void OpenChat();
- void SendEmail();
-
- // Check if we have any variant of the hangouts extension installed and
- // waiting on the onHangoutRequested event (the hangouts extension can have
- // a total of four possible id's, depending on which release type of it is
- // installed). If so, set the hangouts_extension_id_ to the id of the
- // extension that is waiting, or set it to an empty string if not.
- void RefreshHangoutsExtensionId();
-
- Profile* profile_;
- AppListControllerDelegate* controller_;
- std::unique_ptr<Person> person_;
-
- gfx::ImageSkia image_;
-
- // Caches the id of the hangouts extension.
- std::string hangouts_extension_id_;
-
- base::WeakPtrFactory<PeopleResult> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(PeopleResult);
-};
-
-} // namespace app_list
-
-#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_

Powered by Google App Engine
This is Rietveld 408576698