diff options
author | hshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 06:44:44 +0000 |
---|---|---|
committer | hshi@chromium.org <hshi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-27 06:44:44 +0000 |
commit | 16951ead98ddef7943bf162c7b33512b9e947d22 (patch) | |
tree | d0ae9980bbfe0d727c17029e54e3fe64c62d9d7c /chrome/browser/user_data_dir_extractor.h | |
parent | 1761fcc08c01fec1a792befa3da8b98ca04743df (diff) | |
download | chromium_src-16951ead98ddef7943bf162c7b33512b9e947d22.zip chromium_src-16951ead98ddef7943bf162c7b33512b9e947d22.tar.gz chromium_src-16951ead98ddef7943bf162c7b33512b9e947d22.tar.bz2 |
Show user data dialog earlier on Windows.
On Windows if the user data directory does not exist, we must show the user
data dir picker dialog prior to creating the local state to avoid a CHECK
failure. After obtaining the new dir we will restart chrome with the switch
--user-data-dir appended to the command line.
BUG=196301
TEST=CQ
Review URL: https://chromiumcodereview.appspot.com/12662033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/user_data_dir_extractor.h')
-rw-r--r-- | chrome/browser/user_data_dir_extractor.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/browser/user_data_dir_extractor.h b/chrome/browser/user_data_dir_extractor.h new file mode 100644 index 0000000..5e8af0a --- /dev/null +++ b/chrome/browser/user_data_dir_extractor.h @@ -0,0 +1,23 @@ +// Copyright (c) 2013 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_USER_DATA_DIR_EXTRACTOR_H_ +#define CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_ + +namespace base { +class FilePath; +} + +namespace content{ +struct MainFunctionParams; +} + +namespace chrome { + +// Returns the user data dir. Must be called prior to InitializeLocalState(). +base::FilePath GetUserDataDir(const content::MainFunctionParams& parameters); + +} // namespace chrome + +#endif // CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_ |