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

Side by Side Diff: extensions/browser/app_window/app_window.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 "extensions/browser/app_window/app_window.h" 5 #include "extensions/browser/app_window/app_window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 app_delegate_(app_delegate), 245 app_delegate_(app_delegate),
246 fullscreen_types_(FULLSCREEN_TYPE_NONE), 246 fullscreen_types_(FULLSCREEN_TYPE_NONE),
247 has_been_shown_(false), 247 has_been_shown_(false),
248 is_hidden_(false), 248 is_hidden_(false),
249 cached_always_on_top_(false), 249 cached_always_on_top_(false),
250 requested_alpha_enabled_(false), 250 requested_alpha_enabled_(false),
251 is_ime_window_(false), 251 is_ime_window_(false),
252 show_in_shelf_(false), 252 show_in_shelf_(false),
253 image_loader_ptr_factory_(this) { 253 image_loader_ptr_factory_(this) {
254 ExtensionsBrowserClient* client = ExtensionsBrowserClient::Get(); 254 ExtensionsBrowserClient* client = ExtensionsBrowserClient::Get();
255 CHECK(!client->IsGuestSession(context) || context->IsOffTheRecord()) 255 // Only off the record window may be opened in the guest mode.
256 << "Only off the record window may be opened in the guest mode."; 256 CHECK(!client->IsGuestSession(context) || context->IsOffTheRecord());
257 } 257 }
258 258
259 void AppWindow::Init(const GURL& url, 259 void AppWindow::Init(const GURL& url,
260 AppWindowContents* app_window_contents, 260 AppWindowContents* app_window_contents,
261 content::RenderFrameHost* creator_frame, 261 content::RenderFrameHost* creator_frame,
262 const CreateParams& params) { 262 const CreateParams& params) {
263 // Initialize the render interface and web contents 263 // Initialize the render interface and web contents
264 app_window_contents_.reset(app_window_contents); 264 app_window_contents_.reset(app_window_contents);
265 app_window_contents_->Initialize(browser_context(), creator_frame, url); 265 app_window_contents_->Initialize(browser_context(), creator_frame, url);
266 266
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 region.bounds.x(), 1113 region.bounds.x(),
1114 region.bounds.y(), 1114 region.bounds.y(),
1115 region.bounds.right(), 1115 region.bounds.right(),
1116 region.bounds.bottom(), 1116 region.bounds.bottom(),
1117 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op); 1117 region.draggable ? SkRegion::kUnion_Op : SkRegion::kDifference_Op);
1118 } 1118 }
1119 return sk_region; 1119 return sk_region;
1120 } 1120 }
1121 1121
1122 } // namespace extensions 1122 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698