OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/extensions/extension_info_ui.h" | 5 #include "chrome/browser/ui/webui/extensions/extension_info_ui.h" |
6 | 6 |
7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 source_->AddLocalizedStrings(extension_data); | 69 source_->AddLocalizedStrings(extension_data); |
70 | 70 |
71 // Set the icon URL. | 71 // Set the icon URL. |
72 GURL icon = | 72 GURL icon = |
73 ExtensionIconSource::GetIconURL(extension, | 73 ExtensionIconSource::GetIconURL(extension, |
74 extension_misc::EXTENSION_ICON_MEDIUM, | 74 extension_misc::EXTENSION_ICON_MEDIUM, |
75 ExtensionIconSet::MATCH_BIGGER, | 75 ExtensionIconSet::MATCH_BIGGER, |
76 false, NULL); | 76 false, NULL); |
77 source_->AddString("icon", base::UTF8ToUTF16(icon.spec())); | 77 source_->AddString("icon", base::UTF8ToUTF16(icon.spec())); |
78 // Set the last update time (the install time). | 78 // Set the last update time (the install time). |
79 base::Time install_time = extension_service->extension_prefs()-> | 79 base::Time install_time = ExtensionPrefs::Get(extension_service->profile())-> |
James Cook
2014/02/07 00:53:02
Maybe use Profile::FromWebUI(web_ui()) like above?
Ken Rockot(use gerrit already)
2014/02/10 18:53:02
Done.
| |
80 GetInstallTime(extension_id); | 80 GetInstallTime(extension_id); |
81 source_->AddString("installTime", base::TimeFormatShortDate(install_time)); | 81 source_->AddString("installTime", base::TimeFormatShortDate(install_time)); |
82 } | 82 } |
83 | 83 |
84 } // namespace extensions | 84 } // namespace extensions |
OLD | NEW |