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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log_unittest.cc

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit Created 6 years, 1 month 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 (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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "chrome/browser/extensions/activity_log/activity_action_constants.h" 10 #include "chrome/browser/extensions/activity_log/activity_action_constants.h"
(...skipping 19 matching lines...) Expand all
30 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
31 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h" 31 #include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
32 #include "chrome/browser/chromeos/settings/cros_settings.h" 32 #include "chrome/browser/chromeos/settings/cros_settings.h"
33 #include "chrome/browser/chromeos/settings/device_settings_service.h" 33 #include "chrome/browser/chromeos/settings/device_settings_service.h"
34 #endif 34 #endif
35 35
36 namespace { 36 namespace {
37 37
38 const char kExtensionId[] = "abc"; 38 const char kExtensionId[] = "abc";
39 39
40 const char* kUrlApiCalls[] = { 40 const char* const kUrlApiCalls[] = {
41 "HTMLButtonElement.formAction", "HTMLEmbedElement.src", 41 "HTMLButtonElement.formAction", "HTMLEmbedElement.src",
42 "HTMLFormElement.action", "HTMLFrameElement.src", 42 "HTMLFormElement.action", "HTMLFrameElement.src",
43 "HTMLHtmlElement.manifest", "HTMLIFrameElement.src", 43 "HTMLHtmlElement.manifest", "HTMLIFrameElement.src",
44 "HTMLImageElement.longDesc", "HTMLImageElement.src", 44 "HTMLImageElement.longDesc", "HTMLImageElement.src",
45 "HTMLImageElement.lowsrc", "HTMLInputElement.formAction", 45 "HTMLImageElement.lowsrc", "HTMLInputElement.formAction",
46 "HTMLInputElement.src", "HTMLLinkElement.href", 46 "HTMLInputElement.src", "HTMLLinkElement.href",
47 "HTMLMediaElement.src", "HTMLMediaElement.currentSrc", 47 "HTMLMediaElement.src", "HTMLMediaElement.currentSrc",
48 "HTMLModElement.cite", "HTMLObjectElement.data", 48 "HTMLModElement.cite", "HTMLObjectElement.data",
49 "HTMLQuoteElement.cite", "HTMLScriptElement.src", 49 "HTMLQuoteElement.cite", "HTMLScriptElement.src",
50 "HTMLSourceElement.src", "HTMLTrackElement.src", 50 "HTMLSourceElement.src", "HTMLTrackElement.src",
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 kExtensionId, 404 kExtensionId,
405 Action::ACTION_ANY, 405 Action::ACTION_ANY,
406 "", 406 "",
407 "", 407 "",
408 "", 408 "",
409 -1, 409 -1,
410 base::Bind(ActivityLogTest::RetrieveActions_ArgUrlApiCalls)); 410 base::Bind(ActivityLogTest::RetrieveActions_ArgUrlApiCalls));
411 } 411 }
412 412
413 } // namespace extensions 413 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698