Moves responsibility for showing profile error dialog out of Browser
and into a standalone function. This way we can show the error dialog
if no browser is around (as can happen during startup).
BUG=74639
TEST=none
[email protected],[email protected],[email protected]
Review URL: http://codereview.chromium.org/6838031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81637 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/ui/profile_error_dialog.h b/chrome/browser/ui/profile_error_dialog.h
new file mode 100644
index 0000000..a418955
--- /dev/null
+++ b/chrome/browser/ui/profile_error_dialog.h
@@ -0,0 +1,14 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_PROFILE_ERROR_DIALOG_H_
+#define CHROME_BROWSER_UI_PROFILE_ERROR_DIALOG_H_
+#pragma once
+
+// Shows an error dialog corresponding to the inability to open some portion of
+// the profile. |message_id| is a string id corresponding to the message to
+// show.
+void ShowProfileErrorDialog(int message_id);
+
+#endif // CHROME_BROWSER_UI_PROFILE_ERROR_DIALOG_H_