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

Side by Side Diff: chrome/browser/shell_integration.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser/shell_integration.h" 5 #include "chrome/browser/shell_integration.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 17
18 using content::BrowserThread;
19
18 bool ShellIntegration::CanSetAsDefaultProtocolClient() { 20 bool ShellIntegration::CanSetAsDefaultProtocolClient() {
19 // Allowed as long as the browser can become the operating system default 21 // Allowed as long as the browser can become the operating system default
20 // browser. 22 // browser.
21 return CanSetAsDefaultBrowser(); 23 return CanSetAsDefaultBrowser();
22 } 24 }
23 25
24 ShellIntegration::ShortcutInfo::ShortcutInfo() 26 ShellIntegration::ShortcutInfo::ShortcutInfo()
25 : create_on_desktop(false), 27 : create_on_desktop(false),
26 create_in_applications_menu(false), 28 create_in_applications_menu(false),
27 create_in_quick_launch_bar(false) { 29 create_in_quick_launch_bar(false) {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // DefaultProtocolClientWorker, private: 197 // DefaultProtocolClientWorker, private:
196 198
197 ShellIntegration::DefaultWebClientState 199 ShellIntegration::DefaultWebClientState
198 ShellIntegration::DefaultProtocolClientWorker::CheckIsDefault() { 200 ShellIntegration::DefaultProtocolClientWorker::CheckIsDefault() {
199 return ShellIntegration::IsDefaultProtocolClient(protocol_); 201 return ShellIntegration::IsDefaultProtocolClient(protocol_);
200 } 202 }
201 203
202 void ShellIntegration::DefaultProtocolClientWorker::SetAsDefault() { 204 void ShellIntegration::DefaultProtocolClientWorker::SetAsDefault() {
203 ShellIntegration::SetAsDefaultProtocolClient(protocol_); 205 ShellIntegration::SetAsDefaultProtocolClient(protocol_);
204 } 206 }
OLDNEW
« no previous file with comments | « chrome/browser/service/service_process_control_mac.mm ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698