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

Unified Diff: chrome/browser/profiles/file_path_verifier_win.cc

Issue 1294003002: clang/win: Enable -Wswitch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | chrome/browser/speech/tts_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/file_path_verifier_win.cc
diff --git a/chrome/browser/profiles/file_path_verifier_win.cc b/chrome/browser/profiles/file_path_verifier_win.cc
index 39915e54ec55d628d97fb866232f09a029fe175f..8a1f4275e2551b239971f4010f29bfb69ccaf74f 100644
--- a/chrome/browser/profiles/file_path_verifier_win.cc
+++ b/chrome/browser/profiles/file_path_verifier_win.cc
@@ -60,6 +60,10 @@ FileVerificationResult VerifyFileAtPath(const base::FilePath& file) {
FILE_VERIFICATION_FAILED_SAMEDIR_REDIRECT :
FILE_VERIFICATION_FAILED_SAMEDIR;
break;
+ case internal::PATH_COMPARISON_FAILED_UNKNOWN:
+ // file_verification_result was initialized to the right value above.
+ DCHECK_EQ(FILE_VERIFICATION_FAILED_UNKNOWN, file_verification_result);
+ break;
}
}
return file_verification_result;
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | chrome/browser/speech/tts_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698