#include "atom/browser/atom_browser_client.h"
+#if defined(OS_WIN)
+#include <shlobj.h>
+#endif
+
#include "atom/browser/atom_access_token_store.h"
#include "atom/browser/atom_browser_context.h"
#include "atom/browser/atom_browser_main_parts.h"
if (process_type != "renderer")
return;
+ // The registered standard schemes.
if (!g_custom_schemes.empty())
command_line->AppendSwitchASCII(switches::kRegisterStandardSchemes,
g_custom_schemes);
+#if defined(OS_WIN)
+ // Append --app-user-model-id.
+ PWSTR current_app_id;
+ if (SUCCEEDED(GetCurrentProcessExplicitAppUserModelID(¤t_app_id))) {
+ command_line->AppendSwitchNative(switches::kAppUserModelId, current_app_id);
+ CoTaskMemFree(current_app_id);
+ }
+#endif
+
NativeWindow* window;
WebViewManager::WebViewInfo info;
ProcessOwner owner = GetProcessOwner(process_id, &window, &info);
#include <utility>
#include <vector>
-#if defined(OS_WIN)
-#include <shlobj.h>
-#endif
-
#include "atom/browser/atom_browser_context.h"
#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/window_list.h"
command_line->AppendSwitchASCII(switches::kZoomFactor,
base::DoubleToString(zoom_factor_));
-#if defined(OS_WIN)
- // Append --app-user-model-id.
- PWSTR current_app_id;
- if (SUCCEEDED(GetCurrentProcessExplicitAppUserModelID(¤t_app_id))) {
- command_line->AppendSwitchNative(switches::kAppUserModelId, current_app_id);
- CoTaskMemFree(current_app_id);
- }
-#endif
-
if (web_preferences_.IsEmpty())
return;