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

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

Issue 13533019: Disables HTML notifications when rich notifications are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove HTML notifications test from ChromeOS builds. Created 7 years, 8 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) 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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) 147 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID)
148 #include "base/linux_util.h" 148 #include "base/linux_util.h"
149 #include "chrome/browser/crash_handler_host_linux.h" 149 #include "chrome/browser/crash_handler_host_linux.h"
150 #endif 150 #endif
151 151
152 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 152 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
153 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" 153 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h"
154 #endif 154 #endif
155 155
156 #if defined(ENABLE_MESSAGE_CENTER)
157 #include "ui/message_center/message_center_util.h"
158 #endif
159
156 #if defined(OS_ANDROID) 160 #if defined(OS_ANDROID)
157 #include "ui/base/ui_base_paths.h" 161 #include "ui/base/ui_base_paths.h"
158 #endif 162 #endif
159 163
160 #if defined(USE_NSS) 164 #if defined(USE_NSS)
161 #include "chrome/browser/ui/crypto_module_password_dialog.h" 165 #include "chrome/browser/ui/crypto_module_password_dialog.h"
162 #endif 166 #endif
163 167
164 using base::FileDescriptor; 168 using base::FileDescriptor;
165 using content::AccessTokenStore; 169 using content::AccessTokenStore;
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 1156
1153 SigninManager* signin_manager = 1157 SigninManager* signin_manager =
1154 SigninManagerFactory::GetForProfile(profile); 1158 SigninManagerFactory::GetForProfile(profile);
1155 if (signin_manager && signin_manager->IsSigninProcess(process->GetID())) 1159 if (signin_manager && signin_manager->IsSigninProcess(process->GetID()))
1156 command_line->AppendSwitch(switches::kSigninProcess); 1160 command_line->AppendSwitch(switches::kSigninProcess);
1157 } 1161 }
1158 1162
1159 if (content::IsThreadedCompositingEnabled()) 1163 if (content::IsThreadedCompositingEnabled())
1160 command_line->AppendSwitch(switches::kEnableThreadedCompositing); 1164 command_line->AppendSwitch(switches::kEnableThreadedCompositing);
1161 1165
1166 #if defined(ENABLE_MESSAGE_CENTER)
1167 if (message_center::IsRichNotificationEnabled())
1168 command_line->AppendSwitch(switches::kDisableHTMLNotifications);
1169 #endif
1170
1162 // Please keep this in alphabetical order. 1171 // Please keep this in alphabetical order.
1163 static const char* const kSwitchNames[] = { 1172 static const char* const kSwitchNames[] = {
1164 switches::kAllowRequestOSFileHandleAPI, 1173 switches::kAllowRequestOSFileHandleAPI,
1165 switches::kAllowHTTPBackgroundPage, 1174 switches::kAllowHTTPBackgroundPage,
1166 switches::kAllowLegacyExtensionManifests, 1175 switches::kAllowLegacyExtensionManifests,
1167 switches::kAllowScriptingGallery, 1176 switches::kAllowScriptingGallery,
1168 switches::kAppsCheckoutURL, 1177 switches::kAppsCheckoutURL,
1169 switches::kAppsGalleryURL, 1178 switches::kAppsGalleryURL,
1170 switches::kCloudPrintServiceURL, 1179 switches::kCloudPrintServiceURL,
1171 switches::kDebugPrint, 1180 switches::kDebugPrint,
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 io_thread_application_locale_ = locale; 2192 io_thread_application_locale_ = locale;
2184 } 2193 }
2185 2194
2186 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 2195 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
2187 const std::string& locale) { 2196 const std::string& locale) {
2188 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 2197 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
2189 io_thread_application_locale_ = locale; 2198 io_thread_application_locale_ = locale;
2190 } 2199 }
2191 2200
2192 } // namespace chrome 2201 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/notifications_apitest.cc » ('j') | chrome/browser/extensions/notifications_apitest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698