Skip to content

Commit

Permalink
kiosk: Flush installed app files for real
Browse files Browse the repository at this point in the history
Put back the change lost in UseSafeInstallation() during refactoring.

BUG=555220

Review URL: https://codereview.chromium.org/1462463003

Cr-Commit-Position: refs/heads/master@{#360420}
  • Loading branch information
xiyuan authored and Commit bot committed Nov 18, 2015
1 parent a5a9236 commit 2dcf0d1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions extensions/common/file_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ bool ValidateFilePath(const base::FilePath& path) {
// Returns true if the extension installation should flush all files and the
// directory.
bool UseSafeInstallation() {
const char kFieldTrialName[] = "ExtensionUseSafeInstallation";
const char kEnable[] = "Enable";
return base::FieldTrialList::FindFullName(kFieldTrialName) == kEnable;
if (g_use_safe_installation == DEFAULT) {
const char kFieldTrialName[] = "ExtensionUseSafeInstallation";
const char kEnable[] = "Enable";
return base::FieldTrialList::FindFullName(kFieldTrialName) == kEnable;
}

return g_use_safe_installation == ENABLED;
}

enum FlushOneOrAllFiles {
Expand Down

0 comments on commit 2dcf0d1

Please sign in to comment.