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

Side by Side Diff: chrome/browser/ui/extensions/extension_installed_notification.h

Issue 1993583002: Show notification instead of opening app launcher after extension installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
7
8 #include <string>
9
10 #include "chrome/browser/notifications/notification_delegate.h"
11 #include "chrome/browser/profiles/profile.h"
12 #include "extensions/common/extension.h"
13
14 class ExtensionInstalledNotification : public NotificationDelegate {
15 public:
16 static void Show(const extensions::Extension* extension, Profile* profile);
17
18 ExtensionInstalledNotification(const extensions::Extension* extension,
19 Profile* profile);
20
21 // NotificationDelegate override:
22 void Click() override;
23 std::string id() const override;
24
25 protected:
26 // This class is ref-counted.
27 ~ExtensionInstalledNotification() override;
28
29 private:
30 const std::string extension_id_;
31 Profile* const profile_;
32
33 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledNotification);
34 };
35
36 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698