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

Unified Diff: win8/test/metro_registration_helper.h

Issue 12096064: Automatic Win8 default browser registration for the ash unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dear Greg 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 side-by-side diff with in-line comments
Download patch
Index: win8/test/metro_registration_helper.h
diff --git a/win8/test/metro_registration_helper.h b/win8/test/metro_registration_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..86f00159f84d9b789cf225afbb87e99105cd5c75
--- /dev/null
+++ b/win8/test/metro_registration_helper.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WIN8_TEST_METRO_REGISTRATION_HELPER_H_
+#define WIN8_TEST_METRO_REGISTRATION_HELPER_H_
+
+#include "base/string16.h"
+
+namespace win8 {
+
+// Registers a viewer process as a potential Win8 default browser. Intended to
+// be used by a test binary in the build output directory and assumes the
+// presence of test_registrar.exe, a viewer process and all needed DLLs in the
+// same directory as the calling module. The viewer process is then subsequently
+// set as THE default Win8 browser, is activatable using the AppUserModelId in
+// |app_user_model_id| and will show up in the default browser selection dialog
+// as |viewer_process_name|.
+//
+// See also open_with_dialog_controller.h for a mechanism for setting THE
+// default Win8 browser.
+bool RegisterTestDefaultBrowser(const string16& app_user_model_id,
+ const string16& viewer_process_name);
+
+} // namespace win8
+
+#endif // WIN8_TEST_METRO_REGISTRATION_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698