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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 5758002: Make HelpApp component extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable HelpApp in tests Created 9 years, 11 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) 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698