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

Unified Diff: win8/delegate_execute/delegate_execute_operation.cc

Issue 10875008: Integrate the Windows 8 code into the Chromium tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove conflicting OWNERS file. Created 8 years, 3 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
« no previous file with comments | « win8/delegate_execute/delegate_execute_operation.h ('k') | win8/delegate_execute/post_build.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/delegate_execute/delegate_execute_operation.cc
diff --git a/win8/delegate_execute/delegate_execute_operation.cc b/win8/delegate_execute/delegate_execute_operation.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e6823f06b5bf95c504b1399178cff880def34b9a
--- /dev/null
+++ b/win8/delegate_execute/delegate_execute_operation.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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.
+
+#include "win8/delegate_execute/delegate_execute_operation.h"
+
+#include "base/command_line.h"
+#include "chrome/common/chrome_switches.h"
+
+namespace delegate_execute {
+
+DelegateExecuteOperation::DelegateExecuteOperation()
+ : operation_type_(EXE_MODULE) {
+}
+
+DelegateExecuteOperation::~DelegateExecuteOperation() {
+ Clear();
+}
+
+void DelegateExecuteOperation::Initialize(const CommandLine* command_line) {
+ Clear();
+
+ // --relaunch-shortcut=PathToShortcut triggers the relaunch Chrome operation.
+ FilePath shortcut(
+ command_line->GetSwitchValuePath(switches::kRelaunchShortcut));
+ if (!shortcut.empty()) {
+ relaunch_shortcut_ = shortcut;
+ operation_type_ = RELAUNCH_CHROME;
+ }
+}
+
+void DelegateExecuteOperation::Clear() {
+ operation_type_ = EXE_MODULE;
+ relaunch_shortcut_.clear();
+}
+
+} // namespace delegate_execute
« no previous file with comments | « win8/delegate_execute/delegate_execute_operation.h ('k') | win8/delegate_execute/post_build.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698