Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: syzygy/runlaa/runlaa_app.cc

Issue 1261453003: [RunLAA] Cleanup. (Closed) Base URL: https://github.com/google/syzygy.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/runlaa/runlaa_app.cc
diff --git a/syzygy/runlaa/runlaa_app.cc b/syzygy/runlaa/runlaa_app.cc
index a4a085a293ad67bd50bea9955002a102fadf95f5..b610b3d2c08efe706ba8f4cecabfd30c991b523e 100644
--- a/syzygy/runlaa/runlaa_app.cc
+++ b/syzygy/runlaa/runlaa_app.cc
@@ -189,15 +189,15 @@ int RunLaaApp::Run() {
return 1;
}
- bool is_laa = false;
- if (!GetLaaBit(image_, &is_laa))
+ bool was_laa = false;
+ if (!GetLaaBit(image_, &was_laa))
return 1;
base::ScopedTempDir scoped_temp_dir;
base::FilePath child_image(image_);
bool toggle_back = false;
- if (is_laa == is_laa_) {
+ if (was_laa == is_laa_) {
LOG(INFO) << "Image already in desired mode, running directly.";
} else {
// The image is not in the desired mode. It needs to be toggled.
@@ -218,8 +218,7 @@ int RunLaaApp::Run() {
toggle_back = true;
} else {
// The work is not to happen in place. Create a temp directory and copy
- // the
- // image.
+ // the image.
if (!scoped_temp_dir.CreateUniqueTempDir()) {
LOG(ERROR) << "Failed to create temp directory.";
return 1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698