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

Side by Side Diff: chrome/browser/extensions/api/management/management_api.cc

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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/extensions/api/management/management_api.h" 5 #include "chrome/browser/extensions/api/management/management_api.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 base::Bind(&SafeManifestJSONParser::StartWorkOnIOThread, this)); 372 base::Bind(&SafeManifestJSONParser::StartWorkOnIOThread, this));
373 } 373 }
374 374
375 void StartWorkOnIOThread() { 375 void StartWorkOnIOThread() {
376 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 376 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
377 UtilityProcessHost* host = UtilityProcessHost::Create( 377 UtilityProcessHost* host = UtilityProcessHost::Create(
378 this, base::MessageLoopProxy::current().get()); 378 this, base::MessageLoopProxy::current().get());
379 host->Send(new ChromeUtilityMsg_ParseJSON(manifest_)); 379 host->Send(new ChromeUtilityMsg_ParseJSON(manifest_));
380 } 380 }
381 381
382 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { 382 virtual bool OnMessageReceived(const IPC::Message& message) override {
383 bool handled = true; 383 bool handled = true;
384 IPC_BEGIN_MESSAGE_MAP(SafeManifestJSONParser, message) 384 IPC_BEGIN_MESSAGE_MAP(SafeManifestJSONParser, message)
385 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ParseJSON_Succeeded, 385 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ParseJSON_Succeeded,
386 OnJSONParseSucceeded) 386 OnJSONParseSucceeded)
387 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ParseJSON_Failed, 387 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_ParseJSON_Failed,
388 OnJSONParseFailed) 388 OnJSONParseFailed)
389 IPC_MESSAGE_UNHANDLED(handled = false) 389 IPC_MESSAGE_UNHANDLED(handled = false)
390 IPC_END_MESSAGE_MAP() 390 IPC_END_MESSAGE_MAP()
391 return handled; 391 return handled;
392 } 392 }
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 ManagementAPI::GetFactoryInstance() { 1015 ManagementAPI::GetFactoryInstance() {
1016 return g_factory.Pointer(); 1016 return g_factory.Pointer();
1017 } 1017 }
1018 1018
1019 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) { 1019 void ManagementAPI::OnListenerAdded(const EventListenerInfo& details) {
1020 management_event_router_.reset(new ManagementEventRouter(browser_context_)); 1020 management_event_router_.reset(new ManagementEventRouter(browser_context_));
1021 EventRouter::Get(browser_context_)->UnregisterObserver(this); 1021 EventRouter::Get(browser_context_)->UnregisterObserver(this);
1022 } 1022 }
1023 1023
1024 } // namespace extensions 1024 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698