| 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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 using base::TimeDelta; | 135 using base::TimeDelta; |
| 136 | 136 |
| 137 /////////////////////////////////////////////////////////////////////////////// | 137 /////////////////////////////////////////////////////////////////////////////// |
| 138 | 138 |
| 139 namespace { | 139 namespace { |
| 140 | 140 |
| 141 // The URL to be loaded to display Help. | 141 // The URL to be loaded to display Help. |
| 142 #if defined(OS_CHROMEOS) | 142 #if defined(OS_CHROMEOS) |
| 143 const char kHelpContentUrl[] = | 143 const char kHelpContentUrl[] = |
| 144 "chrome-extension://oonnajkebngbfpmcpekfdeofeannbapp/main.html"; | 144 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"; |
| 145 const char kHelpContentOnlineUrl[] = | 145 const char kHelpContentOnlineUrl[] = |
| 146 "http://www.google.com/support/chromeos/"; | 146 "http://www.google.com/support/chromeos/"; |
| 147 #else | 147 #else |
| 148 const char kHelpContentUrl[] = | 148 const char kHelpContentUrl[] = |
| 149 "http://www.google.com/support/chrome/"; | 149 "http://www.google.com/support/chrome/"; |
| 150 #endif | 150 #endif |
| 151 | 151 |
| 152 // The URL to be opened when the Help link on the Autofill dialog is clicked. | 152 // The URL to be opened when the Help link on the Autofill dialog is clicked. |
| 153 const char kAutofillHelpUrl[] = | 153 const char kAutofillHelpUrl[] = |
| 154 #if defined(OS_CHROMEOS) | 154 #if defined(OS_CHROMEOS) |
| (...skipping 4107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4262 // The page transition below is only for the purpose of inserting the tab. | 4262 // The page transition below is only for the purpose of inserting the tab. |
| 4263 browser->AddTab(view_source_contents, PageTransition::LINK); | 4263 browser->AddTab(view_source_contents, PageTransition::LINK); |
| 4264 } | 4264 } |
| 4265 | 4265 |
| 4266 if (profile_->HasSessionService()) { | 4266 if (profile_->HasSessionService()) { |
| 4267 SessionService* session_service = profile_->GetSessionService(); | 4267 SessionService* session_service = profile_->GetSessionService(); |
| 4268 if (session_service) | 4268 if (session_service) |
| 4269 session_service->TabRestored(&view_source_contents->controller(), false); | 4269 session_service->TabRestored(&view_source_contents->controller(), false); |
| 4270 } | 4270 } |
| 4271 } | 4271 } |
| OLD | NEW |