refactor: remove deprecated ToInternalValue() (#40980)
* refactor: do not use deprecated ToInternalValue() in ElectronExtensionLoader::FinishExtensionLoad() * refactor: do not use deprecated ToInternalValue() in NotificationPresenterWin::SaveIconToFilesystem() * chore: rename temp variable to now_usec for clarity
This commit is contained in:
parent
6803624576
commit
021592200e
2 changed files with 7 additions and 5 deletions
|
@ -148,10 +148,11 @@ void ElectronExtensionLoader::FinishExtensionLoad(
|
|||
ExtensionPrefs::ScopedDictionaryUpdate update(
|
||||
extension_prefs, extension.get()->id(),
|
||||
extensions::pref_names::kPrefPreferences);
|
||||
|
||||
auto preference = update.Create();
|
||||
const base::Time install_time = base::Time::Now();
|
||||
preference->SetString(
|
||||
"install_time", base::NumberToString(install_time.ToInternalValue()));
|
||||
const int64_t now_usec =
|
||||
base::Time::Now().since_origin().InMicroseconds();
|
||||
preference->SetString("install_time", base::NumberToString(now_usec));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue