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

Side by Side Diff: chrome/browser/first_run/first_run.h

Issue 11572036: Do not load extension system in the Profile import process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rollback to patchset 10 Created 8 years 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
« no previous file with comments | « chrome/browser/extensions/extension_system.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 5 #ifndef CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 6 #define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool SetShowWelcomePagePref(); 90 bool SetShowWelcomePagePref();
91 91
92 // Sets the kAutofillPersonalDataManagerFirstRun local state pref so that the 92 // Sets the kAutofillPersonalDataManagerFirstRun local state pref so that the
93 // browser loads PersonalDataManager once the main message loop gets going. 93 // browser loads PersonalDataManager once the main message loop gets going.
94 // Returns false if the pref could not be set. 94 // Returns false if the pref could not be set.
95 bool SetPersonalDataManagerFirstRunPref(); 95 bool SetPersonalDataManagerFirstRunPref();
96 96
97 // Log a metric for the "FirstRun.SearchEngineBubble" histogram. 97 // Log a metric for the "FirstRun.SearchEngineBubble" histogram.
98 void LogFirstRunMetric(FirstRunBubbleMetric metric); 98 void LogFirstRunMetric(FirstRunBubbleMetric metric);
99 99
100 // Allow a test to specify additional arguments for the profile import process.
101 void SetExtraArgumentsForImportProcess(const CommandLine& arguments);
102
103 // Get any extra arguments set with SetExtraArgumentsForImportProcess.
104 const CommandLine& GetExtraArgumentsForImportProcess();
105
100 // -- Platform-specific functions -- 106 // -- Platform-specific functions --
101 107
102 // Automatically import history and home page (and search engine, if 108 // Automatically import history and home page (and search engine, if
103 // ShouldShowSearchEngineDialog is true). 109 // ShouldShowSearchEngineDialog is true).
104 void AutoImport(Profile* profile, 110 void AutoImport(Profile* profile,
105 bool homepage_defined, 111 bool homepage_defined,
106 int import_items, 112 int import_items,
107 int dont_import_items, 113 int dont_import_items,
108 bool make_chrome_default, 114 bool make_chrome_default,
109 ProcessSingleton* process_singleton); 115 ProcessSingleton* process_singleton);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const content::NotificationDetails& details) OVERRIDE; 158 const content::NotificationDetails& details) OVERRIDE;
153 159
154 content::NotificationRegistrar registrar_; 160 content::NotificationRegistrar registrar_;
155 161
156 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher); 162 DISALLOW_COPY_AND_ASSIGN(FirstRunBubbleLauncher);
157 }; 163 };
158 164
159 } // namespace first_run 165 } // namespace first_run
160 166
161 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_ 167 #endif // CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system.cc ('k') | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698