#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/native_window.h"
#include "atom/browser/window_list.h"
+#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/path_service.h"
+#include "brightray/browser/brightray_paths.h"
namespace atom {
}
void Browser::DidFinishLaunching() {
+ // Make sure the userData directory is created.
+ base::FilePath user_data;
+ if (PathService::Get(brightray::DIR_USER_DATA, &user_data))
+ base::CreateDirectoryAndGetError(user_data, nullptr);
+
is_ready_ = true;
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnFinishLaunching());
}