| OLD | NEW |
| 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 #include "chrome/browser/first_run/first_run.h" | 5 #include "chrome/browser/first_run/first_run.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 std::string locale = g_browser_process->GetApplicationLocale(); | 402 std::string locale = g_browser_process->GetApplicationLocale(); |
| 403 return (locale == "ru"); | 403 return (locale == "ru"); |
| 404 } | 404 } |
| 405 | 405 |
| 406 // static | 406 // static |
| 407 bool FirstRun::SetOEMFirstRunBubblePref() { | 407 bool FirstRun::SetOEMFirstRunBubblePref() { |
| 408 PrefService* local_state = g_browser_process->local_state(); | 408 PrefService* local_state = g_browser_process->local_state(); |
| 409 if (!local_state) | 409 if (!local_state) |
| 410 return false; | 410 return false; |
| 411 if (!local_state->FindPreference(prefs::kShouldUseOEMFirstRunBubble)) { | 411 if (!local_state->FindPreference(prefs::kShouldUseOEMFirstRunBubble)) { |
| 412 local_state->RegisterBooleanPref(prefs::kShouldUseOEMFirstRunBubble, | 412 local_state->RegisterBooleanPref(prefs::kShouldUseOEMFirstRunBubble, false); |
| 413 false); | |
| 414 local_state->SetBoolean(prefs::kShouldUseOEMFirstRunBubble, true); | 413 local_state->SetBoolean(prefs::kShouldUseOEMFirstRunBubble, true); |
| 415 } | 414 } |
| 416 return true; | 415 return true; |
| 417 } | 416 } |
| 418 | 417 |
| 419 // static | 418 // static |
| 420 bool FirstRun::SetMinimalFirstRunBubblePref() { | 419 bool FirstRun::SetMinimalFirstRunBubblePref() { |
| 421 PrefService* local_state = g_browser_process->local_state(); | 420 PrefService* local_state = g_browser_process->local_state(); |
| 422 if (!local_state) | 421 if (!local_state) |
| 423 return false; | 422 return false; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 if (!observer->ended()) { | 646 if (!observer->ended()) { |
| 648 observer->set_should_quit_message_loop(); | 647 observer->set_should_quit_message_loop(); |
| 649 MessageLoop::current()->Run(); | 648 MessageLoop::current()->Run(); |
| 650 } | 649 } |
| 651 | 650 |
| 652 // Unfortunately there's no success/fail signal in ImporterHost. | 651 // Unfortunately there's no success/fail signal in ImporterHost. |
| 653 return true; | 652 return true; |
| 654 } | 653 } |
| 655 | 654 |
| 656 #endif // OS_POSIX | 655 #endif // OS_POSIX |
| OLD | NEW |