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

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

Issue 1376683003: Android: Mark some profile code as non-mobile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/profiles/profile_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 40f9bd789f533c911622fe454d0eac0e393d42d6..0139f5d89025fc53a52c32354cb7ac7a3653bdc2 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -184,9 +184,11 @@ void ProfileSizeTask(const base::FilePath& path, int enabled_app_count) {
UMA_HISTOGRAM_COUNTS_10000("Profile.AppCount", enabled_app_count);
}
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
void QueueProfileDirectoryForDeletion(const base::FilePath& path) {
ProfilesToDelete().push_back(path);
}
+#endif
bool IsProfileMarkedForDeletion(const base::FilePath& profile_path) {
return std::find(ProfilesToDelete().begin(), ProfilesToDelete().end(),
@@ -654,6 +656,7 @@ ProfileShortcutManager* ProfileManager::profile_shortcut_manager() {
return profile_shortcut_manager_.get();
}
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
void ProfileManager::ScheduleProfileForDeletion(
const base::FilePath& profile_dir,
const CreateCallback& callback) {
@@ -737,6 +740,7 @@ void ProfileManager::ScheduleProfileForDeletion(
FinishDeletingProfile(profile_dir, last_non_supervised_profile_path);
}
+#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
void ProfileManager::AutoloadProfiles() {
// If running in the background is disabled for the browser, do not autoload
@@ -1222,6 +1226,7 @@ Profile* ProfileManager::CreateAndInitializeProfile(
return profile;
}
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
void ProfileManager::FinishDeletingProfile(
const base::FilePath& profile_dir,
const base::FilePath& new_active_profile_dir) {
@@ -1283,6 +1288,7 @@ void ProfileManager::FinishDeletingProfile(
cache.DeleteProfileFromCache(profile_dir);
ProfileMetrics::UpdateReportedProfilesStatistics(this);
}
+#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
ProfileManager::ProfileInfo* ProfileManager::RegisterProfile(
Profile* profile,
@@ -1463,7 +1469,6 @@ void ProfileManager::BrowserListObserver::OnBrowserSetLastActive(
profile_manager_->UpdateLastUser(last_active);
}
-#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
void ProfileManager::OnNewActiveProfileLoaded(
const base::FilePath& profile_to_delete_path,
@@ -1490,6 +1495,7 @@ void ProfileManager::OnNewActiveProfileLoaded(
if (!original_callback.is_null())
original_callback.Run(loaded_profile, status);
}
+#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
ProfileManagerWithoutInit::ProfileManagerWithoutInit(
const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/profiles/profile_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698