summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile.h
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-04 16:38:34 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-04 16:38:34 +0000
commit4e2b6f362a9dc6b872976d798769ac8032b305ec (patch)
tree706014161eca3bd985fa571280719c2b7a14acb8 /chrome/browser/profiles/profile.h
parent2deae8c446a92329bc961e003f1594c453455196 (diff)
downloadchromium_src-4e2b6f362a9dc6b872976d798769ac8032b305ec.zip
chromium_src-4e2b6f362a9dc6b872976d798769ac8032b305ec.tar.gz
chromium_src-4e2b6f362a9dc6b872976d798769ac8032b305ec.tar.bz2
Pass errors generated during limited-user registration up to the UI for display.
Introduces a new Profile::CREATE_STATUS_REMOTE_FAIL type, and renames CREATE_STATUS_FAIL to CREATE_STATUS_LOCAL_FAIL. Adds callbacks and reorganizes profile creation to allow registration errors to propagate back up to the UI layer, and displays them in the profile creation dialog. Adds a spinner to the creation dialog. Adds UMA metrics. BUG=234991 TEST=manual Review URL: https://chromiumcodereview.appspot.com/15774008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile.h')
-rw-r--r--chrome/browser/profiles/profile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 5ba08c5..41b7c3d 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -95,12 +95,16 @@ class Profile : public content::BrowserContext {
};
enum CreateStatus {
- // Profile services were not created.
- CREATE_STATUS_FAIL,
+ // Profile services were not created due to a local error (e.g., disk full).
+ CREATE_STATUS_LOCAL_FAIL,
+ // Profile services were not created due to a remote error (e.g., network
+ // down during limited-user registration).
+ CREATE_STATUS_REMOTE_FAIL,
// Profile created but before initializing extensions and promo resources.
CREATE_STATUS_CREATED,
// Profile is created, extensions and promo resources are initialized.
CREATE_STATUS_INITIALIZED,
+ MAX_CREATE_STATUS // For histogram display.
};
enum CreateMode {