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

Unified Diff: chrome/browser/profiles/profile_attributes_entry.cc

Issue 1794353003: Refactor ProfileInfoCache in c/b/profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a bug that causes unit tests without debug code to fail. Created 4 years, 8 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/profiles/profile_attributes_entry.cc
diff --git a/chrome/browser/profiles/profile_attributes_entry.cc b/chrome/browser/profiles/profile_attributes_entry.cc
index 3031322abfa146d812089c064c768bedf572a118..0db57cbe4eb6f82f3bccbf2d3140d37f2e740d5c 100644
--- a/chrome/browser/profiles/profile_attributes_entry.cc
+++ b/chrome/browser/profiles/profile_attributes_entry.cc
@@ -176,6 +176,10 @@ void ProfileAttributesEntry::SetShortcutName(const base::string16& name) {
profile_info_cache_->SetShortcutNameOfProfileAtIndex(profile_index(), name);
}
+void ProfileAttributesEntry::SetActiveTimeToNow() {
+ profile_info_cache_->SetProfileActiveTimeAtIndex(profile_index());
+}
+
void ProfileAttributesEntry::SetIsOmitted(bool is_omitted) {
profile_info_cache_->SetIsOmittedProfileAtIndex(profile_index(), is_omitted);
}
« no previous file with comments | « chrome/browser/profiles/profile_attributes_entry.h ('k') | chrome/browser/profiles/profile_attributes_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698