-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed first-run dialog is not launched
fix brave/brave-browser#17667 With https://bugs.chromium.org/p/chromium/issues/detail?id=1243221, Local State file is created at the startup. When, "Local State" file is already existed ShouldShowFirstRunDialog(). Due to this, dialog is launched ramdomly only when this file is not stored in FS becfore calling ShouldShowFirstRunDialog(). Browser only tries to run this dialog when first_run::IsChromeFirstRun() is true. Checking "Local State" file again is redundant. Removed this checking.
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Copyright (c) 2021 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "brave/common/brave_paths.h" | ||
#include "base/files/file_path.h" | ||
#include "base/path_service.h" | ||
#include "chrome/common/chrome_paths.h" | ||
#include "testing/gtest/include/gtest/gtest.h" | ||
|
||
TEST(BravePathsTest, PathTest) { | ||
base::FilePath test_dir; | ||
EXPECT_TRUE(base::PathService::Get(brave::DIR_TEST_DATA, &test_dir)); | ||
EXPECT_FALSE(base::PathService::Get(chrome::PATH_END, &test_dir)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters