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

Side by Side Diff: chrome/installer/util/shell_util.h

Issue 189113002: Make delegate_execute GetLaunchMode() check for default browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits from previous review. Created 6 years, 9 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
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file declares methods that are useful for integrating Chrome in 5 // This file declares methods that are useful for integrating Chrome in
6 // Windows shell. These methods are all static and currently part of 6 // Windows shell. These methods are all static and currently part of
7 // ShellUtil class. 7 // ShellUtil class.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 const std::vector<base::string16>& components); 405 const std::vector<base::string16>& components);
406 406
407 // Returns true if Chrome can make itself the default browser without relying 407 // Returns true if Chrome can make itself the default browser without relying
408 // on the Windows shell to prompt the user. This is the case for versions of 408 // on the Windows shell to prompt the user. This is the case for versions of
409 // Windows prior to Windows 8. 409 // Windows prior to Windows 8.
410 static bool CanMakeChromeDefaultUnattended(); 410 static bool CanMakeChromeDefaultUnattended();
411 411
412 // Returns the DefaultState of Chrome for HTTP and HTTPS. 412 // Returns the DefaultState of Chrome for HTTP and HTTPS.
413 static DefaultState GetChromeDefaultState(); 413 static DefaultState GetChromeDefaultState();
414 414
415 // Returns the DefaultState of the Chrome instance with the specified path
416 // for HTTP and HTTPs.
417 static DefaultState GetChromeDefaultStateFromPath(
418 const base::FilePath& chrome_exe);
419
415 // Returns the DefaultState of Chrome for |protocol|. 420 // Returns the DefaultState of Chrome for |protocol|.
416 static DefaultState GetChromeDefaultProtocolClientState( 421 static DefaultState GetChromeDefaultProtocolClientState(
417 const base::string16& protocol); 422 const base::string16& protocol);
418 423
419 // Make Chrome the default browser. This function works by going through 424 // Make Chrome the default browser. This function works by going through
420 // the url protocols and file associations that are related to general 425 // the url protocols and file associations that are related to general
421 // browsing, e.g. http, https, .html etc., and requesting to become the 426 // browsing, e.g. http, https, .html etc., and requesting to become the
422 // default handler for each. If any of these fails the operation will return 427 // default handler for each. If any of these fails the operation will return
423 // false to indicate failure, which is consistent with the return value of 428 // false to indicate failure, which is consistent with the return value of
424 // ShellIntegration::GetDefaultBrowser. 429 // ShellIntegration::GetDefaultBrowser.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // required by the base32 standard for inputs that aren't a multiple of 5 599 // required by the base32 standard for inputs that aren't a multiple of 5
595 // bytes. 600 // bytes.
596 static base::string16 ByteArrayToBase32(const uint8* bytes, size_t size); 601 static base::string16 ByteArrayToBase32(const uint8* bytes, size_t size);
597 602
598 private: 603 private:
599 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 604 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
600 }; 605 };
601 606
602 607
603 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 608 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698