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

Side by Side Diff: chrome_frame/chrome_tab.cc

Issue 7386002: Rename CommandLine::GetCommandLineString(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge. Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // chrome_tab.cc : Implementation of DLL Exports. 5 // chrome_tab.cc : Implementation of DLL Exports.
6 6
7 // Include without path to make GYP build see it. 7 // Include without path to make GYP build see it.
8 #include "chrome_tab.h" // NOLINT 8 #include "chrome_tab.h" // NOLINT
9 9
10 #include <atlsecurity.h> 10 #include <atlsecurity.h>
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 RegKey run_once; 325 RegKey run_once;
326 LONG ret = run_once.Create(hive, kRunOnce, KEY_READ | KEY_WRITE); 326 LONG ret = run_once.Create(hive, kRunOnce, KEY_READ | KEY_WRITE);
327 if (ret == ERROR_SUCCESS) { 327 if (ret == ERROR_SUCCESS) {
328 CommandLine run_once_cmd(chrome_launcher::GetChromeExecutablePath()); 328 CommandLine run_once_cmd(chrome_launcher::GetChromeExecutablePath());
329 run_once_cmd.AppendSwitchASCII(switches::kAutomationClientChannelID, 329 run_once_cmd.AppendSwitchASCII(switches::kAutomationClientChannelID,
330 "0"); 330 "0");
331 run_once_cmd.AppendSwitch(switches::kChromeFrame); 331 run_once_cmd.AppendSwitch(switches::kChromeFrame);
332 ret = run_once.WriteValue(L"A", 332 ret = run_once.WriteValue(L"A",
333 run_once_cmd.command_line_string().c_str()); 333 run_once_cmd.GetCommandLineString().c_str());
334 } 334 }
335 result = HRESULT_FROM_WIN32(ret); 335 result = HRESULT_FROM_WIN32(ret);
336 } else { 336 } else {
337 result = S_FALSE; 337 result = S_FALSE;
338 } 338 }
339 } else { 339 } else {
340 // We're on a non-XP version of Windows or on a stable channel. Nothing 340 // We're on a non-XP version of Windows or on a stable channel. Nothing
341 // needs doing. 341 // needs doing.
342 result = S_FALSE; 342 result = S_FALSE;
343 } 343 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 sd.GetDacl(&new_dacl); 804 sd.GetDacl(&new_dacl);
805 new_dacl.AddAllowedAce(token_.GetUser(), GENERIC_WRITE | GENERIC_READ); 805 new_dacl.AddAllowedAce(token_.GetUser(), GENERIC_WRITE | GENERIC_READ);
806 if (AtlSetDacl(object_name.c_str(), SE_REGISTRY_KEY, new_dacl)) { 806 if (AtlSetDacl(object_name.c_str(), SE_REGISTRY_KEY, new_dacl)) {
807 result = SetOrDeleteMimeHandlerKey(enable, HKEY_LOCAL_MACHINE); 807 result = SetOrDeleteMimeHandlerKey(enable, HKEY_LOCAL_MACHINE);
808 } 808 }
809 } 809 }
810 810
811 backup.RestoreSecurity(object_name.c_str()); 811 backup.RestoreSecurity(object_name.c_str());
812 return result; 812 return result;
813 } 813 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_launcher_unittest.cc ('k') | cloud_print/virtual_driver/win/install/setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698