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

Side by Side Diff: win8/test/metro_registration_helper.h

Issue 15755016: Introduce a single call to grab default browser on Win8 for tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 6 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 | « ash/test/test_suite.cc ('k') | win8/test/metro_registration_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef WIN8_TEST_METRO_REGISTRATION_HELPER_H_ 5 #ifndef WIN8_TEST_METRO_REGISTRATION_HELPER_H_
6 #define WIN8_TEST_METRO_REGISTRATION_HELPER_H_ 6 #define WIN8_TEST_METRO_REGISTRATION_HELPER_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 9
10 namespace win8 { 10 namespace win8 {
11 11
12 // Registers a viewer process as a potential Win8 default browser. Intended to 12 // Synchronously makes chrome.exe THE default Win8 browser after which it is
13 // be used by a test binary in the build output directory and assumes the 13 // activatable into a Metro viewer process using
14 // presence of test_registrar.exe, a viewer process and all needed DLLs in the 14 // win8::test::kDefaultTestAppUserModelId. Intended to be used by a test binary
15 // same directory as the calling module. The viewer process is then subsequently 15 // in the output directory and assumes the presence of test_registrar.exe,
16 // set as THE default Win8 browser, is activatable using the AppUserModelId in 16 // chrome.exe (the viewer process), and all needed DLLs in the same directory
17 // |app_user_model_id| and will show up in the default browser selection dialog 17 // as the calling module.
18 // as |viewer_process_name|. 18 // NOTE: COM must be initialized prior to calling this method.
19 // 19 bool MakeTestDefaultBrowserSynchronously();
20 // See also open_with_dialog_controller.h for a mechanism for setting THE
21 // default Win8 browser.
22 bool RegisterTestDefaultBrowser(const string16& app_user_model_id,
23 const string16& viewer_process_name);
24 20
25 } // namespace win8 21 } // namespace win8
26 22
27 #endif // WIN8_TEST_METRO_REGISTRATION_HELPER_H_ 23 #endif // WIN8_TEST_METRO_REGISTRATION_HELPER_H_
OLDNEW
« no previous file with comments | « ash/test/test_suite.cc ('k') | win8/test/metro_registration_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698