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

Side by Side Diff: chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More IWYU, missing link-time dependency for Chrome Frame. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/webui/chromeos/sim_unlock_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop.h"
13 #include "base/string_piece.h" 14 #include "base/string_piece.h"
14 #include "base/values.h" 15 #include "base/values.h"
15 #include "chrome/browser/chromeos/cros/cros_library.h" 16 #include "chrome/browser/chromeos/cros/cros_library.h"
16 #include "chrome/browser/chromeos/cros/network_library.h" 17 #include "chrome/browser/chromeos/cros/network_library.h"
17 #include "chrome/browser/chromeos/sim_dialog_delegate.h" 18 #include "chrome/browser/chromeos/sim_dialog_delegate.h"
18 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 20 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
20 #include "chrome/common/chrome_notification_types.h" 21 #include "chrome/common/chrome_notification_types.h"
21 #include "chrome/common/jstemplate_builder.h" 22 #include "chrome/common/jstemplate_builder.h"
22 #include "chrome/common/url_constants.h" 23 #include "chrome/common/url_constants.h"
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 AddMessageHandler((handler)->Attach(this)); 679 AddMessageHandler((handler)->Attach(this));
679 handler->Init(contents); 680 handler->Init(contents);
680 SimUnlockUIHTMLSource* html_source = new SimUnlockUIHTMLSource(); 681 SimUnlockUIHTMLSource* html_source = new SimUnlockUIHTMLSource();
681 682
682 // Set up the chrome://sim-unlock/ source. 683 // Set up the chrome://sim-unlock/ source.
683 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 684 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
684 profile->GetChromeURLDataManager()->AddDataSource(html_source); 685 profile->GetChromeURLDataManager()->AddDataSource(html_source);
685 } 686 }
686 687
687 } // namespace chromeos 688 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698