Commit 0782062b authored by dconnelly's avatar dconnelly Committed by Commit bot

Remove HasBeenShutdown check on iOS for the sign-in confirmation.

BUG=405048

Review URL: https://codereview.chromium.org/546343004

Cr-Commit-Position: refs/heads/master@{#293882}
parent 04f14411
...@@ -38,7 +38,7 @@ const int kHistoryEntriesBeforeNewProfilePrompt = 10; ...@@ -38,7 +38,7 @@ const int kHistoryEntriesBeforeNewProfilePrompt = 10;
// Determines whether a profile has any typed URLs in its history. // Determines whether a profile has any typed URLs in its history.
class HasTypedURLsTask : public history::HistoryDBTask { class HasTypedURLsTask : public history::HistoryDBTask {
public: public:
HasTypedURLsTask(const base::Callback<void(bool)>& cb) explicit HasTypedURLsTask(const base::Callback<void(bool)>& cb)
: has_typed_urls_(false), cb_(cb) { : has_typed_urls_(false), cb_(cb) {
} }
...@@ -189,10 +189,19 @@ SkColor GetSigninConfirmationPromptBarColor(SkAlpha alpha) { ...@@ -189,10 +189,19 @@ SkColor GetSigninConfirmationPromptBarColor(SkAlpha alpha) {
} }
bool HasBeenShutdown(Profile* profile) { bool HasBeenShutdown(Profile* profile) {
#if defined(OS_IOS)
// This check is not useful on iOS: the browser can be shut down without
// explicit user action (for example, in response to memory pressure), and
// this should be invisible to the user. The desktop assumption that the
// profile going through a restart indicates something about user intention
// does not hold. We rely on the other profile dirtiness checks.
return false;
#else
bool has_been_shutdown = !profile->IsNewProfile(); bool has_been_shutdown = !profile->IsNewProfile();
if (has_been_shutdown) if (has_been_shutdown)
DVLOG(1) << "ProfileSigninConfirmationHelper: profile is not new"; DVLOG(1) << "ProfileSigninConfirmationHelper: profile is not new";
return has_been_shutdown; return has_been_shutdown;
#endif
} }
bool HasSyncedExtensions(Profile* profile) { bool HasSyncedExtensions(Profile* profile) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment