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

Side by Side Diff: chrome/browser/extensions/error_console/error_console_browsertest.cc

Issue 47923018: Move FeatureSwitch to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/error_console/error_console.h" 5 #include "chrome/browser/extensions/error_console/error_console.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/extensions/extension_browsertest.h" 12 #include "chrome/browser/extensions/extension_browsertest.h"
13 #include "chrome/browser/extensions/extension_toolbar_model.h" 13 #include "chrome/browser/extensions/extension_toolbar_model.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/common/extensions/extension.h" 15 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/extensions/feature_switch.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
18 #include "chrome/test/base/ui_test_utils.h" 17 #include "chrome/test/base/ui_test_utils.h"
19 #include "extensions/browser/extension_error.h" 18 #include "extensions/browser/extension_error.h"
20 #include "extensions/common/constants.h" 19 #include "extensions/common/constants.h"
21 #include "extensions/common/error_utils.h" 20 #include "extensions/common/error_utils.h"
22 #include "extensions/common/extension_urls.h" 21 #include "extensions/common/extension_urls.h"
22 #include "extensions/common/feature_switch.h"
23 #include "extensions/common/manifest_constants.h" 23 #include "extensions/common/manifest_constants.h"
24 #include "net/test/embedded_test_server/embedded_test_server.h" 24 #include "net/test/embedded_test_server/embedded_test_server.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
28 using base::string16; 28 using base::string16;
29 using base::UTF8ToUTF16; 29 using base::UTF8ToUTF16;
30 30
31 namespace extensions { 31 namespace extensions {
32 32
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 514
515 const StackTrace& stack_trace = GetStackTraceFromError(errors[0]); 515 const StackTrace& stack_trace = GetStackTraceFromError(errors[0]);
516 ASSERT_EQ(1u, stack_trace.size()); 516 ASSERT_EQ(1u, stack_trace.size());
517 CheckStackFrame(stack_trace[0], 517 CheckStackFrame(stack_trace[0],
518 script_url, 518 script_url,
519 kAnonymousFunction, 519 kAnonymousFunction,
520 5u, 1u); 520 5u, 1u);
521 } 521 }
522 522
523 } // namespace extensions 523 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698