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

Side by Side Diff: components/app_modal_dialogs/javascript_dialog_manager_client.cc

Issue 666533007: Move JavaScriptDialogManager, JavascriptAppModalDialogViews to components/app_modal_dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/app_modal_dialogs/javascript_dialog_manager_client.h"
6
7 namespace {
8
9 JavaScriptDialogManagerClient* client = nullptr;
10
11 } //namespace
12
13 void SetJavaScriptDialogManagerClient(
14 scoped_ptr<JavaScriptDialogManagerClient> new_client) {
15 delete client;
16 client = new_client.release();
Avi (use Gerrit) 2014/10/29 17:40:57 Wait, what? This is clearly ownership semantics,
oshima 2014/10/31 15:54:45 This needs to be set by embedder so we can't use S
17 }
18
19 JavaScriptDialogManagerClient* GetJavaScriptDialogManagerClient() {
20 CHECK(client);
21 return client;
22 }
23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698