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

Unified 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, 7 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/extensions/extension_installed_notification.h
diff --git a/chrome/browser/ui/extensions/extension_installed_notification.h b/chrome/browser/ui/extensions/extension_installed_notification.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f5c5539c4f1cfac316de7f4948aa27f8c2aa572
--- /dev/null
+++ b/chrome/browser/ui/extensions/extension_installed_notification.h
@@ -0,0 +1,36 @@
+// Copyright 2016 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_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
+#define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_
+
+#include <string>
+
+#include "chrome/browser/notifications/notification_delegate.h"
+#include "chrome/browser/profiles/profile.h"
+#include "extensions/common/extension.h"
+
+class ExtensionInstalledNotification : public NotificationDelegate {
+ public:
+ static void Show(const extensions::Extension* extension, Profile* profile);
+
+ ExtensionInstalledNotification(const extensions::Extension* extension,
+ Profile* profile);
+
+ // NotificationDelegate override:
+ void Click() override;
+ std::string id() const override;
+
+ protected:
+ // This class is ref-counted.
+ ~ExtensionInstalledNotification() override;
+
+ private:
+ const std::string extension_id_;
+ Profile* const profile_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledNotification);
+};
+
+#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALLED_NOTIFICATION_H_

Powered by Google App Engine
This is Rietveld 408576698