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

Side by Side Diff: apps/shell_integration.cc

Issue 12321107: Move shell integration code from chrome/browser to apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "apps/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/prefs/pref_service.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/policy/policy_path_parser.h" 14 #include "chrome/browser/policy/policy_path_parser.h"
15 #include "chrome/common/chrome_paths.h"
16 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/pref_names.h"
18 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
19 17
20 using content::BrowserThread; 18 using content::BrowserThread;
21 19
22 ShellIntegration::DefaultWebClientSetPermission 20 ShellIntegration::DefaultWebClientSetPermission
23 ShellIntegration::CanSetAsDefaultProtocolClient() { 21 ShellIntegration::CanSetAsDefaultProtocolClient() {
24 // Allowed as long as the browser can become the operating system default 22 // Allowed as long as the browser can become the operating system default
25 // browser. 23 // browser.
26 return CanSetAsDefaultBrowser(); 24 return CanSetAsDefaultBrowser();
27 } 25 }
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 result = ShellIntegration::SetAsDefaultProtocolClientInteractive( 284 result = ShellIntegration::SetAsDefaultProtocolClientInteractive(
287 protocol_); 285 protocol_);
288 } 286 }
289 break; 287 break;
290 default: 288 default:
291 NOTREACHED(); 289 NOTREACHED();
292 } 290 }
293 291
294 return result; 292 return result;
295 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698