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

Side by Side Diff: chrome/browser/ui/browser_init.h

Issue 9748016: [protector] Added UI for invalid Preferences backup case. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix unit-test. Created 8 years, 9 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
« no previous file with comments | « chrome/browser/protector/session_startup_change.cc ('k') | chrome/browser/ui/browser_init.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_UI_BROWSER_INIT_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_INIT_H_
6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_ 6 #define CHROME_BROWSER_UI_BROWSER_INIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 void AddStartupURLs(std::vector<GURL>* startup_urls) const; 231 void AddStartupURLs(std::vector<GURL>* startup_urls) const;
232 232
233 // Checks whether Chrome is still the default browser (unless the user 233 // Checks whether Chrome is still the default browser (unless the user
234 // previously instructed not to do so) and warns the user if it is not. 234 // previously instructed not to do so) and warns the user if it is not.
235 void CheckDefaultBrowser(Profile* profile); 235 void CheckDefaultBrowser(Profile* profile);
236 236
237 // Checks whether Chrome should show the 'Chrome was auto-started' infobar. 237 // Checks whether Chrome should show the 'Chrome was auto-started' infobar.
238 // Returns true if so. 238 // Returns true if so.
239 bool CheckIfAutoLaunched(Profile* profile); 239 bool CheckIfAutoLaunched(Profile* profile);
240 240
241 // Checks whether the Preferences backup is invalid and notifies user in
242 // that case.
243 void CheckPreferencesBackup(Profile* profile);
244
241 const FilePath cur_dir_; 245 const FilePath cur_dir_;
242 const CommandLine& command_line_; 246 const CommandLine& command_line_;
243 Profile* profile_; 247 Profile* profile_;
244 BrowserInit* browser_init_; 248 BrowserInit* browser_init_;
245 bool is_first_run_; 249 bool is_first_run_;
246 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile); 250 DISALLOW_COPY_AND_ASSIGN(LaunchWithProfile);
247 }; 251 };
248 252
249 private: 253 private:
250 friend class CloudPrintProxyPolicyTest; 254 friend class CloudPrintProxyPolicyTest;
(...skipping 30 matching lines...) Expand all
281 285
282 // True if we have already read and reset the preference kWasRestarted. (A 286 // True if we have already read and reset the preference kWasRestarted. (A
283 // member variable instead of a static variable inside WasRestarted because 287 // member variable instead of a static variable inside WasRestarted because
284 // of testing.) 288 // of testing.)
285 static bool was_restarted_read_; 289 static bool was_restarted_read_;
286 290
287 DISALLOW_COPY_AND_ASSIGN(BrowserInit); 291 DISALLOW_COPY_AND_ASSIGN(BrowserInit);
288 }; 292 };
289 293
290 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_ 294 #endif // CHROME_BROWSER_UI_BROWSER_INIT_H_
OLDNEW
« no previous file with comments | « chrome/browser/protector/session_startup_change.cc ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698