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

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

Issue 1896513002: Fix registerProtocolHandler implementation on Windows 8 and 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang compilation Created 4 years, 8 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
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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // chrome::kMaxAppModelIdLength (some of the components might have been 402 // chrome::kMaxAppModelIdLength (some of the components might have been
403 // shortened to enforce this). 403 // shortened to enforce this).
404 static base::string16 BuildAppModelId( 404 static base::string16 BuildAppModelId(
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 enum InteractiveSetDefaultMode {
413 // The intent picker is opened with the different choices available to the
414 // user.
415 INTENT_PICKER,
416 // The Windows default apps settings page is opened with the current default
417 // app focused.
418 SYSTEM_SETTINGS,
419 };
420
421 // Returns the interactive mode that should be used to set the default browser
422 // or default protocol client on Windows 8+.
423 static InteractiveSetDefaultMode GetInteractiveSetDefaultMode();
424
412 // Returns the DefaultState of Chrome for HTTP and HTTPS and updates the 425 // Returns the DefaultState of Chrome for HTTP and HTTPS and updates the
413 // default browser beacons as appropriate. 426 // default browser beacons as appropriate.
414 static DefaultState GetChromeDefaultState(); 427 static DefaultState GetChromeDefaultState();
415 428
416 // Returns the DefaultState of the Chrome instance with the specified path for 429 // Returns the DefaultState of the Chrome instance with the specified path for
417 // HTTP and HTTPs and updates the default browser beacons as appropriate. 430 // HTTP and HTTPs and updates the default browser beacons as appropriate.
418 static DefaultState GetChromeDefaultStateFromPath( 431 static DefaultState GetChromeDefaultStateFromPath(
419 const base::FilePath& chrome_exe); 432 const base::FilePath& chrome_exe);
420 433
421 // Returns the DefaultState of Chrome for |protocol|. 434 // Returns the DefaultState of Chrome for |protocol|.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // Set/CreateRegWorkItems and runs them using WorkItemList. 654 // Set/CreateRegWorkItems and runs them using WorkItemList.
642 static bool AddRegistryEntries(HKEY root, 655 static bool AddRegistryEntries(HKEY root,
643 const ScopedVector<RegistryEntry>& entries); 656 const ScopedVector<RegistryEntry>& entries);
644 657
645 private: 658 private:
646 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 659 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
647 }; 660 };
648 661
649 662
650 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 663 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/scoped_user_protocol_entry_unittest.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698