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

Side by Side Diff: chrome/browser/extensions/external_extension_loader.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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/extensions/external_extension_loader.h" 5 #include "chrome/browser/extensions/external_extension_loader.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/external_extension_provider_impl.h" 9 #include "chrome/browser/extensions/external_extension_provider_impl.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 11
12 using content::BrowserThread;
13
12 ExternalExtensionLoader::ExternalExtensionLoader() 14 ExternalExtensionLoader::ExternalExtensionLoader()
13 : owner_(NULL), 15 : owner_(NULL),
14 running_(false) { 16 running_(false) {
15 } 17 }
16 18
17 void ExternalExtensionLoader::Init( 19 void ExternalExtensionLoader::Init(
18 ExternalExtensionProviderImpl* owner) { 20 ExternalExtensionProviderImpl* owner) {
19 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 21 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
20 owner_ = owner; 22 owner_ = owner;
21 } 23 }
(...skipping 13 matching lines...) Expand all
35 37
36 ExternalExtensionLoader::~ExternalExtensionLoader() {} 38 ExternalExtensionLoader::~ExternalExtensionLoader() {}
37 39
38 void ExternalExtensionLoader::LoadFinished() { 40 void ExternalExtensionLoader::LoadFinished() {
39 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 41 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
40 running_ = false; 42 running_ = false;
41 if (owner_) { 43 if (owner_) {
42 owner_->SetPrefs(prefs_.release()); 44 owner_->SetPrefs(prefs_.release());
43 } 45 }
44 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698