summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-01-04 12:35:03 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-04 20:35:47 +0000
commit8d34e46c9a294b4d9a5f74e97d9e6536d34555c2 (patch)
tree01f00566b53cd84f04339c75bd0290deb40529a1 /cloud_print
parent75e2fba8610567c6b903ecd929707660570d3197 (diff)
downloadchromium_src-8d34e46c9a294b4d9a5f74e97d9e6536d34555c2.zip
chromium_src-8d34e46c9a294b4d9a5f74e97d9e6536d34555c2.tar.gz
chromium_src-8d34e46c9a294b4d9a5f74e97d9e6536d34555c2.tar.bz2
Cleanup: Remove double semicolons.
Found with: git grep -l ';;$' | egrep '\.(cc|h)$' | grep -v third_party Review URL: https://codereview.chromium.org/1558633002 Cr-Commit-Position: refs/heads/master@{#367361}
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/service/win/chrome_launcher.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc
index 8966a20..5c9013a 100644
--- a/cloud_print/service/win/chrome_launcher.cc
+++ b/cloud_print/service/win/chrome_launcher.cc
@@ -13,7 +13,6 @@
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/process/process.h"
-#include "base/process/process.h"
#include "base/values.h"
#include "base/win/registry.h"
#include "base/win/scoped_handle.h"
@@ -201,8 +200,8 @@ void ChromeLauncher::Run() {
const base::TimeDelta default_time_out = base::TimeDelta::FromSeconds(1);
const base::TimeDelta max_time_out = base::TimeDelta::FromHours(1);
- for (base::TimeDelta time_out = default_time_out;;
- time_out = std::min(time_out * 2, max_time_out)) {
+ base::TimeDelta time_out = default_time_out;
+ while (1) {
base::FilePath chrome_path =
chrome_launcher_support::GetAnyChromePath(false /* is_sxs */);
@@ -254,6 +253,8 @@ void ChromeLauncher::Run() {
}
if (stop_event_.TimedWait(time_out))
break;
+
+ time_out = std::min(time_out * 2, max_time_out);
}
}