OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/shell_integration.h" | 5 #include "chrome/browser/shell_integration.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/prefs/pref_service.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 ShellIntegration::DefaultWebClientSetPermission | 21 ShellIntegration::DefaultWebClientSetPermission |
22 ShellIntegration::CanSetAsDefaultProtocolClient() { | 22 ShellIntegration::CanSetAsDefaultProtocolClient() { |
23 // Allowed as long as the browser can become the operating system default | 23 // Allowed as long as the browser can become the operating system default |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( | 282 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( |
283 protocol_); | 283 protocol_); |
284 } | 284 } |
285 break; | 285 break; |
286 default: | 286 default: |
287 NOTREACHED(); | 287 NOTREACHED(); |
288 } | 288 } |
289 | 289 |
290 return result; | 290 return result; |
291 } | 291 } |
OLD | NEW |