1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_
6 #define CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_
8 #include "base/callback.h"
15 struct MainFunctionParams
;
20 typedef base::Callback
<base::FilePath()> GetUserDataDirCallback
;
22 // Tests may install a custom GetUserDataDir() callback to override behavior.
23 void InstallCustomGetUserDataDirCallbackForTest(
24 GetUserDataDirCallback
* callback
);
26 // Returns the user data dir. Must be called prior to InitializeLocalState().
27 base::FilePath
GetUserDataDir(const content::MainFunctionParams
& parameters
);
31 #endif // CHROME_BROWSER_USER_DATA_DIR_EXTRACTOR_H_