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

Side by Side Diff: chrome/browser/first_run/first_run_linux.cc

Issue 12321107: Move shell integration code from chrome/browser to apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/first_run/first_run.h" 5 #include "chrome/browser/first_run/first_run.h"
6 6
7 #include "apps/shell_integration.h"
7 #include "base/command_line.h" 8 #include "base/command_line.h"
8 #include "base/file_util.h" 9 #include "base/file_util.h"
9 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
10 #include "base/path_service.h" 11 #include "base/path_service.h"
11 #include "base/process_util.h" 12 #include "base/process_util.h"
12 #include "base/string_piece.h" 13 #include "base/string_piece.h"
13 #include "base/string_util.h" 14 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
15 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/first_run/first_run_internal.h" 17 #include "chrome/browser/first_run/first_run_internal.h"
17 #include "chrome/browser/importer/importer_host.h" 18 #include "chrome/browser/importer/importer_host.h"
18 #include "chrome/browser/process_singleton.h" 19 #include "chrome/browser/process_singleton.h"
19 #include "chrome/browser/shell_integration.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/installer/util/google_update_settings.h" 21 #include "chrome/installer/util/google_update_settings.h"
22 #include "chrome/installer/util/master_preferences.h" 22 #include "chrome/installer/util/master_preferences.h"
23 #include "content/public/common/result_codes.h" 23 #include "content/public/common/result_codes.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "ui/base/ui_base_switches.h" 25 #include "ui/base/ui_base_switches.h"
26 26
27 namespace first_run { 27 namespace first_run {
28 namespace internal { 28 namespace internal {
29 29
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 base::FilePath MasterPrefsPath() { 71 base::FilePath MasterPrefsPath() {
72 // The standard location of the master prefs is next to the chrome binary. 72 // The standard location of the master prefs is next to the chrome binary.
73 base::FilePath master_prefs; 73 base::FilePath master_prefs;
74 if (!PathService::Get(base::DIR_EXE, &master_prefs)) 74 if (!PathService::Get(base::DIR_EXE, &master_prefs))
75 return base::FilePath(); 75 return base::FilePath();
76 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); 76 return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
77 } 77 }
78 78
79 } // namespace first_run 79 } // namespace first_run
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698