OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome_frame/ready_mode/internal/registry_ready_mode_state.h" | 5 #include "chrome_frame/ready_mode/internal/registry_ready_mode_state.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "base/task.h" | |
15 #include "base/win/registry.h" | 14 #include "base/win/registry.h" |
16 #include "base/win/scoped_comptr.h" | 15 #include "base/win/scoped_comptr.h" |
17 #include "base/win/scoped_handle.h" | 16 #include "base/win/scoped_handle.h" |
18 #include "base/win/windows_version.h" | 17 #include "base/win/windows_version.h" |
19 #include "chrome/installer/util/browser_distribution.h" | 18 #include "chrome/installer/util/browser_distribution.h" |
20 #include "chrome/installer/util/google_update_constants.h" | 19 #include "chrome/installer/util/google_update_constants.h" |
21 #include "chrome/installer/util/master_preferences.h" | 20 #include "chrome/installer/util/master_preferences.h" |
22 #include "chrome/installer/util/util_constants.h" | 21 #include "chrome/installer/util/util_constants.h" |
23 #include "chrome_frame/chrome_launcher_utils.h" | 22 #include "chrome_frame/chrome_launcher_utils.h" |
24 #include "chrome_frame/ready_mode/ready_mode.h" | 23 #include "chrome_frame/ready_mode/ready_mode.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 245 |
247 void RegistryReadyModeState::PermanentlyDeclineChromeFrame() { | 246 void RegistryReadyModeState::PermanentlyDeclineChromeFrame() { |
248 if (LaunchAndCheckCommand(google_update::kRegCFOptOutCmdField)) | 247 if (LaunchAndCheckCommand(google_update::kRegCFOptOutCmdField)) |
249 RefreshStateAndNotify(); | 248 RefreshStateAndNotify(); |
250 } | 249 } |
251 | 250 |
252 void RegistryReadyModeState::AcceptChromeFrame() { | 251 void RegistryReadyModeState::AcceptChromeFrame() { |
253 if (LaunchAndCheckCommand(google_update::kRegCFOptInCmdField)) | 252 if (LaunchAndCheckCommand(google_update::kRegCFOptInCmdField)) |
254 NotifyObserver(); | 253 NotifyObserver(); |
255 } | 254 } |
OLD | NEW |