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

Side by Side Diff: chrome/browser/ui/panels/extension_panel_originator.cc

Issue 7011015: Show "About panel" bubble on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 #include "chrome/browser/ui/panels/extension_panel_originator.h"
6
7 #include "chrome/browser/extensions/extension_prefs.h"
8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/extensions/extension.h"
11
12 ExtensionPanelOriginator::ExtensionPanelOriginator(
13 const Extension* extension, Profile* profile)
14 : extension_(extension) {
15 ExtensionPrefs* prefs = profile->GetExtensionService()->extension_prefs();
16 install_time_ = prefs->GetInstallTime(extension->id());
17 }
18
19 std::string ExtensionPanelOriginator::GetOriginatorName() const {
20 return extension_->name();
21 }
22
23 std::string ExtensionPanelOriginator::GetOriginatorDescription() const {
24 return extension_->description();
25 }
26
27 base::Time ExtensionPanelOriginator::GetOriginatorInstallTime() const {
28 return install_time_;
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698