Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Windows-specific function implementations for the firstrun subcommand. | |
| 6 | |
| 7 package firstrun | |
| 8 | |
| 9 import ( | |
| 10 "bufio" | |
|
seanmccullough1
2016/04/29 00:54:36
None of these packages are used in this file. I gu
agable
2016/05/05 23:59:42
Right, removed.
| |
| 11 "fmt" | |
| 12 "os" | |
| 13 "path" | |
| 14 "runtime" | |
| 15 ) | |
| 16 | |
| 17 // firstrunCheckNotInstalled is a sanity check to make sure that the user really | |
| 18 // wants to do firstrun again, if it looks like cr is already installed. | |
| 19 func firstrunCheckNotInstalled() { | |
| 20 // Check to see if a path ending in 'cr/bin' in in %PATH%. | |
| 21 // Check to see if an executable called 'cr.exe' is in that path. | |
| 22 } | |
| 23 | |
| 24 // firstrunPromptInstallDir prompts the user for a directory path to install. | |
| 25 func firstrunPromptInstallDir() { | |
| 26 // Figure out a sane place to suggest. | |
| 27 // Suggest it and ask the user for an alternative. | |
| 28 // Check that the chosen directory makes sense. | |
| 29 } | |
| 30 | |
| 31 // firstrunInitInstallDir sets up the selected directory to house cr. It creates | |
| 32 // the modules/ and bin/ subdirectories, places cr.exe in the top level, and | |
| 33 // symlinks it into bin/. | |
| 34 func firstrunInitInstallDir() { | |
| 35 | |
| 36 } | |
| 37 | |
| 38 // firstrunUpdatePath finds the registry entry for %PATH%, sees if it can | |
| 39 // automatically update it, and prompts the user for permission to do so. | |
| 40 func firstrunUpdatePath() { | |
| 41 | |
| 42 } | |
| 43 | |
| 44 // firstrunPrintUpdatePathInstructions prints instructions for the user to | |
| 45 // update their %PATH% manually. This is used if updatePath fails, or if the | |
| 46 // user declines to have their registry updated automatically. | |
| 47 func firstrunPrintUpdatePathInstructions() { | |
| 48 | |
| 49 } | |
| OLD | NEW |