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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 2262743002: DevTools: Run devtools tests in release mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address CL feedback Created 4 years, 3 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
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_devtools_frontend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 if (p.IsAbsolute()) 215 if (p.IsAbsolute())
216 return false; 216 return false;
217 217
218 base::FilePath inspector_dir; 218 base::FilePath inspector_dir;
219 if (!PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir)) 219 if (!PathService::Get(chrome::DIR_INSPECTOR, &inspector_dir))
220 return false; 220 return false;
221 221
222 if (inspector_dir.empty()) 222 if (inspector_dir.empty())
223 return false; 223 return false;
224 224
225 *path = inspector_dir.AppendASCII(relative_path); 225 // Use the non-bundled and non-minified devtools app for development
mmenke 2016/08/31 01:04:36 Hrm...Really seems like profiles/ should not know
226 *path = inspector_dir.AppendASCII("debug").AppendASCII(relative_path);
226 return true; 227 return true;
227 } 228 }
228 229
229 class DebugDevToolsInterceptor : public net::URLRequestInterceptor { 230 class DebugDevToolsInterceptor : public net::URLRequestInterceptor {
230 public: 231 public:
231 // net::URLRequestInterceptor implementation. 232 // net::URLRequestInterceptor implementation.
232 net::URLRequestJob* MaybeInterceptRequest( 233 net::URLRequestJob* MaybeInterceptRequest(
233 net::URLRequest* request, 234 net::URLRequest* request,
234 net::NetworkDelegate* network_delegate) const override { 235 net::NetworkDelegate* network_delegate) const override {
235 base::FilePath path; 236 base::FilePath path;
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 void ProfileIOData::SetCookieSettingsForTesting( 1377 void ProfileIOData::SetCookieSettingsForTesting(
1377 content_settings::CookieSettings* cookie_settings) { 1378 content_settings::CookieSettings* cookie_settings) {
1378 DCHECK(!cookie_settings_.get()); 1379 DCHECK(!cookie_settings_.get());
1379 cookie_settings_ = cookie_settings; 1380 cookie_settings_ = cookie_settings;
1380 } 1381 }
1381 1382
1382 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1383 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1383 const GURL& url) const { 1384 const GURL& url) const {
1384 return url_blacklist_manager_->GetURLBlacklistState(url); 1385 return url_blacklist_manager_->GetURLBlacklistState(url);
1385 } 1386 }
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/layout_test_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698