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

Side by Side Diff: chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc

Issue 1048113003: Implementation of API to clear savings data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ClearSavingsData
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer/extensions/chrome_extensions_dispatcher_delegate.h" 5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 "cast.streaming.receiverSession", 200 "cast.streaming.receiverSession",
201 IDR_CAST_STREAMING_RECEIVER_SESSION_CUSTOM_BINDINGS_JS); 201 IDR_CAST_STREAMING_RECEIVER_SESSION_CUSTOM_BINDINGS_JS);
202 #endif 202 #endif
203 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); 203 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS);
204 204
205 // Custom types sources. 205 // Custom types sources.
206 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); 206 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS);
207 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); 207 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS);
208 source_map->RegisterSource("ChromeDirectSetting", 208 source_map->RegisterSource("ChromeDirectSetting",
209 IDR_CHROME_DIRECT_SETTING_JS); 209 IDR_CHROME_DIRECT_SETTING_JS);
210 source_map->RegisterSource("DataReductionProxy",
211 IDR_DATA_REDUCTION_PROXY_JS);
210 212
211 // Platform app sources that are not API-specific.. 213 // Platform app sources that are not API-specific..
212 source_map->RegisterSource("fileEntryBindingUtil", 214 source_map->RegisterSource("fileEntryBindingUtil",
213 IDR_FILE_ENTRY_BINDING_UTIL_JS); 215 IDR_FILE_ENTRY_BINDING_UTIL_JS);
214 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); 216 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS);
215 source_map->RegisterSource("chromeWebViewInternal", 217 source_map->RegisterSource("chromeWebViewInternal",
216 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); 218 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS);
217 source_map->RegisterSource("chromeWebView", IDR_CHROME_WEB_VIEW_JS); 219 source_map->RegisterSource("chromeWebView", IDR_CHROME_WEB_VIEW_JS);
218 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); 220 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS);
219 } 221 }
(...skipping 28 matching lines...) Expand all
248 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 250 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
249 ::switches::kSingleProcess)) 251 ::switches::kSingleProcess))
250 return; 252 return;
251 crash_keys::SetActiveExtensions(extension_ids); 253 crash_keys::SetActiveExtensions(extension_ids);
252 } 254 }
253 255
254 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { 256 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) {
255 extensions::SetCurrentChannel( 257 extensions::SetCurrentChannel(
256 static_cast<chrome::VersionInfo::Channel>(channel)); 258 static_cast<chrome::VersionInfo::Channel>(channel));
257 } 259 }
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/resources/extensions/data_reduction_proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698