refactor: Chromium code style for enum classes (#26165)
This commit is contained in:
parent
dbf2931f0e
commit
1c99a9b425
34 changed files with 300 additions and 295 deletions
|
@ -24,9 +24,9 @@ struct Converter<electron::BundlerMoverConflictType> {
|
|||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
electron::BundlerMoverConflictType value) {
|
||||
switch (value) {
|
||||
case electron::BundlerMoverConflictType::EXISTS:
|
||||
case electron::BundlerMoverConflictType::kExists:
|
||||
return gin::StringToV8(isolate, "exists");
|
||||
case electron::BundlerMoverConflictType::EXISTS_AND_RUNNING:
|
||||
case electron::BundlerMoverConflictType::kExistsAndRunning:
|
||||
return gin::StringToV8(isolate, "existsAndRunning");
|
||||
default:
|
||||
return gin::StringToV8(isolate, "");
|
||||
|
@ -117,7 +117,7 @@ bool ElectronBundleMover::Move(gin_helper::ErrorThrower thrower,
|
|||
if (IsApplicationAtPathRunning(destinationPath)) {
|
||||
// Check for callback handler and get user choice for open/quit
|
||||
if (!ShouldContinueMove(
|
||||
thrower, BundlerMoverConflictType::EXISTS_AND_RUNNING, args))
|
||||
thrower, BundlerMoverConflictType::kExistsAndRunning, args))
|
||||
return false;
|
||||
|
||||
// Unless explicitly denied, give running app focus and terminate self
|
||||
|
@ -130,7 +130,7 @@ bool ElectronBundleMover::Move(gin_helper::ErrorThrower thrower,
|
|||
return true;
|
||||
} else {
|
||||
// Check callback handler and get user choice for app trashing
|
||||
if (!ShouldContinueMove(thrower, BundlerMoverConflictType::EXISTS,
|
||||
if (!ShouldContinueMove(thrower, BundlerMoverConflictType::kExists,
|
||||
args))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue